diff options
author | chai <chaifix@163.com> | 2018-09-02 00:48:21 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-09-02 00:48:21 +0800 |
commit | 862763a88f6b4a6cb6c034287c509a91776adf8b (patch) | |
tree | 78c1f391c1c5ed95acfda055e3bf806290df74d8 /src/lua/modules/embed/embed.h | |
parent | b05e2443533af8e3badb4a8469a634cb302c63f8 (diff) |
*update
Diffstat (limited to 'src/lua/modules/embed/embed.h')
-rw-r--r-- | src/lua/modules/embed/embed.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/lua/modules/embed/embed.h b/src/lua/modules/embed/embed.h index 18ed1d8..6393454 100644 --- a/src/lua/modules/embed/embed.h +++ b/src/lua/modules/embed/embed.h @@ -7,9 +7,6 @@ namespace jin namespace embed { - /** - * embed lua script to context. - */ #define embed(L, script, name)\ if(luax_loadbuffer(L, script, strlen(script), name) == 0)\ lua_call(L, 0, 0); @@ -32,18 +29,19 @@ namespace embed // embed scripts const jin_Embed scripts[] = { - { "graphics.lua", graphics_lua }, - { "keyboard.lua", keyboard_lua }, - { "mouse.lua", mouse_lua }, - { "boot.lua", boot_lua }, - { 0, 0 } + { "graphics.lua", graphics_lua }, + { "keyboard.lua", keyboard_lua }, + { "mouse.lua", mouse_lua }, + { "boot.lua", boot_lua }, + { 0, 0 } }; // load all emebd lua scripts for (int i = 0; scripts[i].file; ++i) embed(L, scripts[i].source, scripts[i].file); } -} -} + +} // embed +} // jin #endif
\ No newline at end of file |