From e8e12b11db220160eb63727fb03548410bf3afd2 Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 25 Nov 2018 00:11:28 +0800 Subject: *misc --- src/lua/embed/embed.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/lua/embed') diff --git a/src/lua/embed/embed.h b/src/lua/embed/embed.h index 7172a2c..a063e65 100644 --- a/src/lua/embed/embed.h +++ b/src/lua/embed/embed.h @@ -7,10 +7,6 @@ namespace JinEngine namespace Embed { - #define embed(L, script, name)\ - if(luax_loadbuffer(L, script, strlen(script), name) == 0)\ - lua_call(L, 0, 0); - // Embed structure. struct jin_Embed { @@ -24,7 +20,7 @@ namespace JinEngine #include "scripts/boot.lua.h" // In order. - const jin_Embed scripts[] = { + static const jin_Embed scripts[] = { { "graphics.lua", graphics_lua }, { "keyboard.lua", keyboard_lua }, { "mouse.lua", mouse_lua }, -- cgit v1.1-26-g67d0