diff options
author | chai <chaifix@163.com> | 2018-11-12 22:23:35 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-11-12 22:23:35 +0800 |
commit | c7e59fb376453e5abad8c862b52eb0f4c7ba829b (patch) | |
tree | caefc559396525f6521ad8ff8c4f7f3f035942c2 /src/lua/modules/graphics/je_lua_texture_font.cpp | |
parent | af62f267a24091a16cbafe844d59cdbd4e78f5b1 (diff) |
*修改结构
Diffstat (limited to 'src/lua/modules/graphics/je_lua_texture_font.cpp')
-rw-r--r-- | src/lua/modules/graphics/je_lua_texture_font.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/lua/modules/graphics/je_lua_texture_font.cpp b/src/lua/modules/graphics/je_lua_texture_font.cpp index dbaa997..1cdbfff 100644 --- a/src/lua/modules/graphics/je_lua_texture_font.cpp +++ b/src/lua/modules/graphics/je_lua_texture_font.cpp @@ -51,16 +51,15 @@ namespace JinEngine return 1; } - LUA_IMPLEMENT const luaL_Reg f[] = { - { "__gc", l_gc }, - { "typeset", l_typeset }, - { 0, 0 } - }; - LUA_EXPORT int luaopen_TextureFont(lua_State* L) { + luaL_Reg f[] = { + { "__gc", l_gc }, + { "typeset", l_typeset }, + { 0, 0 } + }; luax_newtype(L, JIN_GRAPHICS_TEXTUREFONT, f); - + return 0; } |