module.h 410 B

123456789101112131415161718
  1. #if defined(_WIN32) || defined(_WIN64)
  2. #define DLL_EXPORT __declspec(dllexport)
  3. #else
  4. #define DLL_EXPORT __attribute__((visibility("default")))
  5. #endif
  6. extern "C" {
  7. /// <summary>
  8. /// 注册模块入口
  9. /// </summary>
  10. /// <param name="sol2"></param>
  11. /// <param name="lua"></param>
  12. /// <returns>
  13. /// 0=成功
  14. /// 1=失败
  15. /// </returns>
  16. DLL_EXPORT int fastweb_module_regist(void* sol2,void* lua);
  17. }