mirror of https://github.com/bjornbytes/lovr.git
Add __declspec;
This commit is contained in:
parent
2398e592a9
commit
cd5df6b148
28
src/api.h
28
src/api.h
|
@ -1,17 +1,23 @@
|
|||
#include "luax.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#define LOVR_API __declspec(dllexport)
|
||||
#else
|
||||
#define LOVR_API
|
||||
#endif
|
||||
|
||||
// Module loaders
|
||||
int luaopen_lovr(lua_State* L);
|
||||
int luaopen_lovr_audio(lua_State* L);
|
||||
int luaopen_lovr_data(lua_State* L);
|
||||
int luaopen_lovr_event(lua_State* L);
|
||||
int luaopen_lovr_filesystem(lua_State* L);
|
||||
int luaopen_lovr_graphics(lua_State* L);
|
||||
int luaopen_lovr_headset(lua_State* L);
|
||||
int luaopen_lovr_math(lua_State* L);
|
||||
int luaopen_lovr_physics(lua_State* L);
|
||||
int luaopen_lovr_thread(lua_State* L);
|
||||
int luaopen_lovr_timer(lua_State* L);
|
||||
LOVR_API int luaopen_lovr(lua_State* L);
|
||||
LOVR_API int luaopen_lovr_audio(lua_State* L);
|
||||
LOVR_API int luaopen_lovr_data(lua_State* L);
|
||||
LOVR_API int luaopen_lovr_event(lua_State* L);
|
||||
LOVR_API int luaopen_lovr_filesystem(lua_State* L);
|
||||
LOVR_API int luaopen_lovr_graphics(lua_State* L);
|
||||
LOVR_API int luaopen_lovr_headset(lua_State* L);
|
||||
LOVR_API int luaopen_lovr_math(lua_State* L);
|
||||
LOVR_API int luaopen_lovr_physics(lua_State* L);
|
||||
LOVR_API int luaopen_lovr_thread(lua_State* L);
|
||||
LOVR_API int luaopen_lovr_timer(lua_State* L);
|
||||
|
||||
// Objects
|
||||
extern const luaL_Reg lovrAnimator[];
|
||||
|
|
Loading…
Reference in New Issue