mirror of
https://github.com/bjornbytes/lovr.git
synced 2024-07-04 13:33:34 +00:00
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"
|
#include "luax.h"
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#define LOVR_API __declspec(dllexport)
|
||||||
|
#else
|
||||||
|
#define LOVR_API
|
||||||
|
#endif
|
||||||
|
|
||||||
// Module loaders
|
// Module loaders
|
||||||
int luaopen_lovr(lua_State* L);
|
LOVR_API int luaopen_lovr(lua_State* L);
|
||||||
int luaopen_lovr_audio(lua_State* L);
|
LOVR_API int luaopen_lovr_audio(lua_State* L);
|
||||||
int luaopen_lovr_data(lua_State* L);
|
LOVR_API int luaopen_lovr_data(lua_State* L);
|
||||||
int luaopen_lovr_event(lua_State* L);
|
LOVR_API int luaopen_lovr_event(lua_State* L);
|
||||||
int luaopen_lovr_filesystem(lua_State* L);
|
LOVR_API int luaopen_lovr_filesystem(lua_State* L);
|
||||||
int luaopen_lovr_graphics(lua_State* L);
|
LOVR_API int luaopen_lovr_graphics(lua_State* L);
|
||||||
int luaopen_lovr_headset(lua_State* L);
|
LOVR_API int luaopen_lovr_headset(lua_State* L);
|
||||||
int luaopen_lovr_math(lua_State* L);
|
LOVR_API int luaopen_lovr_math(lua_State* L);
|
||||||
int luaopen_lovr_physics(lua_State* L);
|
LOVR_API int luaopen_lovr_physics(lua_State* L);
|
||||||
int luaopen_lovr_thread(lua_State* L);
|
LOVR_API int luaopen_lovr_thread(lua_State* L);
|
||||||
int luaopen_lovr_timer(lua_State* L);
|
LOVR_API int luaopen_lovr_timer(lua_State* L);
|
||||||
|
|
||||||
// Objects
|
// Objects
|
||||||
extern const luaL_Reg lovrAnimator[];
|
extern const luaL_Reg lovrAnimator[];
|
||||||
|
|
Loading…
Reference in a new issue