aboutsummaryrefslogtreecommitdiff
path: root/src/lua/modules/graphics/je_lua_text.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/modules/graphics/je_lua_text.cpp')
-rw-r--r--src/lua/modules/graphics/je_lua_text.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lua/modules/graphics/je_lua_text.cpp b/src/lua/modules/graphics/je_lua_text.cpp
index 60ab28c..4d6db5f 100644
--- a/src/lua/modules/graphics/je_lua_text.cpp
+++ b/src/lua/modules/graphics/je_lua_text.cpp
@@ -17,13 +17,12 @@ namespace JinEngine
return 0;
}
- LUA_IMPLEMENT const luaL_Reg f[] = {
- { "__gc", l_gc },
- { 0, 0 }
- };
-
LUA_EXPORT int luaopen_Text(lua_State* L)
{
+ luaL_Reg f[] = {
+ { "__gc", l_gc },
+ { 0, 0 }
+ };
luax_newtype(L, JIN_GRAPHICS_TEXT, f);
return 0;
}