From 862763a88f6b4a6cb6c034287c509a91776adf8b Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 2 Sep 2018 00:48:21 +0800 Subject: *update --- src/lua/modules/embed/embed.h | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'src/lua/modules/embed/embed.h') 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 -- cgit v1.1-26-g67d0