#include "../server/libaquery.h" extern void* Aalloc(size_t sz); extern int Afree(void * mem); template size_t register_memory(T* ptr){ [](void* m){ auto _m = static_cast(m); delete _m; }; } #define EXPORT __DLLEXPORT__