模块外置
This commit is contained in:
18
module/dll_interface.h
Normal file
18
module/dll_interface.h
Normal 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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user