123456789101112131415161718192021222324252627 |
- // testshmdll.cpp : 定义 DLL 的导出函数。
- //
- #include "testshmdll.h"
- #include "shm.h"
- struct Test
- {
- int a = 2;
- int c = 3;
- };
- extern "C" TESTSHMDLL_API void* DllMalloc(size_t bytes)
- {
- return bg::ShmMalloc(bytes);
- }
- extern "C" TESTSHMDLL_API void* DllRealloc(void* old_ptr, size_t new_bytes)
- {
- return bg::ShmRealloc(old_ptr, new_bytes);
- }
- extern "C" TESTSHMDLL_API void DllFree(void* ptr)
- {
- bg::ShmFree(ptr);
- }
|