From c7e59fb376453e5abad8c862b52eb0f4c7ba829b Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 12 Nov 2018 22:23:35 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lua/modules/graphics/je_lua_canvas.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/lua/modules/graphics/je_lua_canvas.cpp') diff --git a/src/lua/modules/graphics/je_lua_canvas.cpp b/src/lua/modules/graphics/je_lua_canvas.cpp index 42570b2..8d8630f 100644 --- a/src/lua/modules/graphics/je_lua_canvas.cpp +++ b/src/lua/modules/graphics/je_lua_canvas.cpp @@ -47,17 +47,17 @@ namespace JinEngine return 0; } - LUA_IMPLEMENT const luaL_Reg f[] = { - { "__gc", l_gc }, - { "getWidth", l_getWidth }, - { "getHeight", l_getHeight }, - { "getSize", l_getSize }, - { 0, 0 } - }; - LUA_EXPORT int luaopen_Canvas(lua_State* L) { + luaL_Reg f[] = { + { "__gc", l_gc }, + { "getWidth", l_getWidth }, + { "getHeight", l_getHeight }, + { "getSize", l_getSize }, + { 0, 0 } + }; luax_newtype(L, JIN_GRAPHICS_CANVAS, f); + return 0; } -- cgit v1.1-26-g67d0