v2 / vlib / v / gen / c / testdata / windows_callconv_generated_c.c.must_have
7 lines · 7 sloc · 468 bytes · 9919e0b2c9be631872c1bafd3cea94adf09ad331
Raw
1#define VCALLCONV(name) __##name
2#define VCALLCONV(name) __attribute__((name))
3#define C__LONG LONG
4#define v_set_unhandled_exception_filter(handler) SetUnhandledExceptionFilter((LPTOP_LEVEL_EXCEPTION_FILTER)(handler))
5typedef C__LONG (VCALLCONV(stdcall) *TopLevelExceptionFilter)(ExceptionPointers*);
6VV_LOC C__LONG VCALLCONV(stdcall) builtin__unhandled_exception_handler(ExceptionPointers* e);
7v_set_unhandled_exception_filter(builtin__unhandled_exception_handler);
8