]> gitweb.factorcode.org Git - factor.git/commitdiff
vm: dllexport exception_handler for great justice
authorSlava Pestov <slava@factorcode.org>
Mon, 5 Apr 2010 20:48:09 +0000 (15:48 -0500)
committerSlava Pestov <slava@factorcode.org>
Mon, 5 Apr 2010 20:48:09 +0000 (15:48 -0500)
vm/os-windows-nt.cpp
vm/os-windows-nt.hpp
vm/platform.hpp

index 711b2a8445a02679ee806cd5268db52691544884..b7f86233a1da77c1a85805cff88a0afc801d36b1 100755 (executable)
@@ -87,7 +87,7 @@ LONG factor_vm::exception_handler(PEXCEPTION_RECORD e, void *frame, PCONTEXT c,
        return ExceptionContinueExecution;
 }
 
-extern "C" LONG exception_handler(PEXCEPTION_RECORD e, void *frame, PCONTEXT c, void *dispatch)
+VM_C_API LONG exception_handler(PEXCEPTION_RECORD e, void *frame, PCONTEXT c, void *dispatch)
 {
        return current_vm()->exception_handler(e,frame,c,dispatch);
 }
index 2ba75ccf543fdfbda1c7ee97d083917c56cefffb..60990c0986510a6188daf1bb5887667fd12b9488 100755 (executable)
@@ -22,7 +22,7 @@ typedef char symbol_char;
 
 #define FACTOR_DLL NULL
 
-extern "C" LONG exception_handler(PEXCEPTION_RECORD e, void *frame, PCONTEXT c, void *dispatch);
+VM_C_API LONG exception_handler(PEXCEPTION_RECORD e, void *frame, PCONTEXT c, void *dispatch);
 
 // SSE traps raise these exception codes, which are defined in internal NT headers
 // but not winbase.h
index a71aae1e89b5dbbb03615f28849fe5813286f4dd..e5a07a05d426e5ac580e8aab98faae2563fcd29f 100755 (executable)
@@ -3,8 +3,8 @@
                #include "os-windows-ce.hpp"
                #include "os-windows.hpp"
        #elif defined(WINNT)
-               #include "os-windows-nt.hpp"
                #include "os-windows.hpp"
+               #include "os-windows-nt.hpp"
 
                #if defined(FACTOR_AMD64)
                        #include "os-windows-nt.64.hpp"