aboutsummaryrefslogtreecommitdiff
path: root/src/lua/embed/embed.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/embed/embed.h')
-rw-r--r--src/lua/embed/embed.h6
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 },