LuaEngine/Common.cpp
2020-05-23 01:11:46 +08:00

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");
}