mirror of
https://github.com/fancycode/MemoryModule
synced 2026-06-06 15:44:28 +00:00
Add exception handling code to example.
This commit is contained in:
@@ -7,4 +7,11 @@ SAMPLEDLL_API int addNumbers(int a, int b)
|
||||
return a + b;
|
||||
}
|
||||
|
||||
#ifdef _WIN64
|
||||
SAMPLEDLL_API void throwException(void)
|
||||
{
|
||||
throw 42;
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user