mirror of
https://github.com/fancycode/MemoryModule
synced 2026-06-06 15:44:28 +00:00
18 lines
186 B
C++
18 lines
186 B
C++
#include "SampleDLL.h"
|
|
|
|
extern "C" {
|
|
|
|
SAMPLEDLL_API int addNumbers(int a, int b)
|
|
{
|
|
return a + b;
|
|
}
|
|
|
|
#ifdef _WIN64
|
|
SAMPLEDLL_API void throwException(void)
|
|
{
|
|
throw 42;
|
|
}
|
|
#endif
|
|
|
|
}
|