diff options
author | chai <chaifix@163.com> | 2018-11-25 00:11:28 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-11-25 00:11:28 +0800 |
commit | e8e12b11db220160eb63727fb03548410bf3afd2 (patch) | |
tree | a36d62b783e97af9047469955b1aa0ddae6b4627 /src/lua/embed/embed.h | |
parent | 42421575d2e17b5c57ff0034c037b651bd6d1119 (diff) |
*misc
Diffstat (limited to 'src/lua/embed/embed.h')
-rw-r--r-- | src/lua/embed/embed.h | 6 |
1 files changed, 1 insertions, 5 deletions
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 }, |