diff options
Diffstat (limited to 'apps/plugins/lua/rocklib.c')
-rw-r--r-- | apps/plugins/lua/rocklib.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/plugins/lua/rocklib.c b/apps/plugins/lua/rocklib.c index 426dd079af..1d20989009 100644 --- a/apps/plugins/lua/rocklib.c +++ b/apps/plugins/lua/rocklib.c | |||
@@ -793,7 +793,11 @@ LUALIB_API int luaopen_rock(lua_State *L) | |||
793 | { | 793 | { |
794 | luaL_register(L, LUA_ROCKLIBNAME, rocklib); | 794 | luaL_register(L, LUA_ROCKLIBNAME, rocklib); |
795 | luaL_register(L, LUA_ROCKLIBNAME, rocklib_aux); | 795 | luaL_register(L, LUA_ROCKLIBNAME, rocklib_aux); |
796 | 796 | lua_getglobal(L, "require"); | |
797 | lua_pushstring(L, "rb_defines"); | ||
798 | if (lua_pcall (L, 1, 0, 0)) | ||
799 | lua_pop(L, 1); | ||
800 | #if 0 | ||
797 | static const struct lua_int_reg rlib_const_int[] = | 801 | static const struct lua_int_reg rlib_const_int[] = |
798 | { | 802 | { |
799 | /* useful integer constants */ | 803 | /* useful integer constants */ |
@@ -860,7 +864,7 @@ LUALIB_API int luaopen_rock(lua_State *L) | |||
860 | luaS_newlloc(L, rlcs->name, TSTR_INBIN); | 864 | luaS_newlloc(L, rlcs->name, TSTR_INBIN); |
861 | lua_setfield(L, -2, rlcs->name); | 865 | lua_setfield(L, -2, rlcs->name); |
862 | } | 866 | } |
863 | 867 | #endif | |
864 | return 1; | 868 | return 1; |
865 | } | 869 | } |
866 | 870 | ||