diff options
Diffstat (limited to 'src/lua/modules/graphics/je_lua_page.cpp')
-rw-r--r-- | src/lua/modules/graphics/je_lua_page.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/lua/modules/graphics/je_lua_page.cpp b/src/lua/modules/graphics/je_lua_page.cpp index 29e3ff8..7e9b6d1 100644 --- a/src/lua/modules/graphics/je_lua_page.cpp +++ b/src/lua/modules/graphics/je_lua_page.cpp @@ -57,16 +57,15 @@ namespace JinEngine return 1; } - LUA_IMPLEMENT const luaL_Reg f[] = { - { "__gc", l_gc }, - { "getSize", l_getSize }, - { "getWidth", l_getWidth }, - { "getHeight", l_getHeight }, - { 0, 0 } - }; - LUA_EXPORT int luaopen_Page(lua_State* L) { + luaL_Reg f[] = { + { "__gc", l_gc }, + { "getSize", l_getSize }, + { "getWidth", l_getWidth }, + { "getHeight", l_getHeight }, + { 0, 0 } + }; luax_newtype(L, JIN_GRAPHICS_PAGE, f); return 0; } |