mirror of
https://github.com/Kiritow/LuaEngine.git
synced 2024-03-22 13:11:45 +08:00
15 lines
257 B
C++
15 lines
257 B
C++
|
#include "include.h"
|
||
|
|
||
|
int common_getplatform(lua_State* L)
|
||
|
{
|
||
|
lua_pushstring(L, SDL_GetPlatform());
|
||
|
return 1;
|
||
|
}
|
||
|
|
||
|
void InitCommon(lua_State* L)
|
||
|
{
|
||
|
lua_newtable(L);
|
||
|
lua_setfield_function(L, "getPlatform", common_getplatform);
|
||
|
lua_setglobal(L, "Common");
|
||
|
}
|