Fix dll issues on Windows
This commit is contained in:
parent
0eca951b26
commit
95d558cb98
@ -40,6 +40,9 @@
|
|||||||
|
|
||||||
extern const char *raylua_boot_str;
|
extern const char *raylua_boot_str;
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
|
__declspec(dllexport)
|
||||||
|
#endif
|
||||||
void raylua_boot(lua_State *L, lua_CFunction loadfile, lua_CFunction listfiles,
|
void raylua_boot(lua_State *L, lua_CFunction loadfile, lua_CFunction listfiles,
|
||||||
bool repl)
|
bool repl)
|
||||||
{
|
{
|
||||||
@ -77,6 +80,9 @@ void raylua_boot(lua_State *L, lua_CFunction loadfile, lua_CFunction listfiles,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
|
__declspec(dllexport)
|
||||||
|
#endif
|
||||||
int luaopen_raylua(lua_State *L)
|
int luaopen_raylua(lua_State *L)
|
||||||
{
|
{
|
||||||
raylua_boot(L, NULL, NULL, false);
|
raylua_boot(L, NULL, NULL, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user