예제 #1
0
파일: LuaScream.cpp 프로젝트: nixtux/spring
bool LuaScream::PushEntries(lua_State* L)
{
	CreateMetatable(L);

	REGISTER_LUA_CFUNC(CreateScream);
	return true;
}
예제 #2
0
파일: LuaLobby.cpp 프로젝트: Arkazon/spring
bool LuaLobby::PushEntries(lua_State* L)
{
	CreateMetatable(L);

	REGISTER_LUA_CFUNC(CreateLobby);

	return true;
}
예제 #3
0
bool LuaFonts::PushEntries(lua_State* L)
{
	CreateMetatable(L);

	REGISTER_LUA_CFUNC(LoadFont);
	REGISTER_LUA_CFUNC(DeleteFont);

	return true;
}
예제 #4
0
bool LuaScream::PushEntries(lua_State* L)
{
	CreateMetatable(L);

#define REGISTER_LUA_CFUNC(x) \
	lua_pushstring(L, #x);      \
	lua_pushcfunction(L, x);    \
	lua_rawset(L, -3)

	REGISTER_LUA_CFUNC(CreateScream);

	return true;
}