summaryrefslogtreecommitdiff
path: root/rts/win32
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-11-23 18:00:26 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-11-30 10:15:58 -0500
commitb66292890d5fe0791c291f4fc427f1ab1d0f5c15 (patch)
tree0117e351676cc3fe4fedc8fd7bf1b1cf68aaac12 /rts/win32
parent8d304a99d2d0c17fb49c0589c0525817d515c0d0 (diff)
downloadhaskell-b66292890d5fe0791c291f4fc427f1ab1d0f5c15.tar.gz
rts: Use CHECK instead of assert
Use the GHC wrappers instead of <assert.h>.
Diffstat (limited to 'rts/win32')
-rw-r--r--rts/win32/veh_excn.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/rts/win32/veh_excn.c b/rts/win32/veh_excn.c
index 141806997a..749f3720ce 100644
--- a/rts/win32/veh_excn.c
+++ b/rts/win32/veh_excn.c
@@ -10,7 +10,6 @@
#include "ghcconfig.h"
#include "veh_excn.h"
#include "LinkerInternals.h"
-#include <assert.h>
#include <stdbool.h>
#include <dbghelp.h>
#include <shellapi.h>
@@ -195,7 +194,7 @@ void __register_hs_exception_handler( void )
__hs_handle = AddVectoredContinueHandler(CALL_LAST,
__hs_exception_handler);
// should the handler not be registered this will return a null.
- assert(__hs_handle);
+ CHECK(__hs_handle);
// Register for an exception filter to ensure the continue handler gets
// hit if no one handled the exception.