模块外置

This commit is contained in:
xx
2024-06-07 15:00:31 +08:00
parent 671c4f64f0
commit f3540cd415
129 changed files with 81 additions and 15613 deletions

18
module/dll_interface.h Normal file
View File

@@ -0,0 +1,18 @@
#if defined(_WIN32) || defined(_WIN64)
#define DLL_EXPORT __declspec(dllexport)
#else
#define DLL_EXPORT __attribute__((visibility("default")))
#endif
extern "C" {
/// <summary>
/// 注册模块入口
/// </summary>
/// <param name="sol2"></param>
/// <param name="lua"></param>
/// <returns>
/// 0=成功
/// 1=失败
/// </returns>
DLL_EXPORT int fastweb_module_regist(void* sol2,void* lua);
}