diff options
Diffstat (limited to 'apps/plugins/lua/rocklib.h')
-rw-r--r-- | apps/plugins/lua/rocklib.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/apps/plugins/lua/rocklib.h b/apps/plugins/lua/rocklib.h index 83d82e56ef..25b5ae1088 100644 --- a/apps/plugins/lua/rocklib.h +++ b/apps/plugins/lua/rocklib.h | |||
@@ -32,10 +32,18 @@ | |||
32 | #define ERR_DATA_OVF "data overflow" | 32 | #define ERR_DATA_OVF "data overflow" |
33 | #endif | 33 | #endif |
34 | 34 | ||
35 | #ifndef ERR_NO_ALLOC_DBYTES | 35 | #define RB_CONSTANT(x) {#x, x} |
36 | #define ERR_NO_ALLOC_DBYTES "Can't allocate %d bytes!" | 36 | #define RB_STRING_CONSTANT(x) RB_CONSTANT(x) |
37 | #endif | 37 | |
38 | 38 | struct lua_int_reg { | |
39 | char const* name; | ||
40 | const int value; | ||
41 | }; | ||
42 | |||
43 | struct lua_str_reg { | ||
44 | char const* name; | ||
45 | char const* value; | ||
46 | }; | ||
39 | 47 | ||
40 | LUALIB_API int (luaopen_rock) (lua_State *L); | 48 | LUALIB_API int (luaopen_rock) (lua_State *L); |
41 | const char* get_current_path(lua_State *L, int level); | 49 | const char* get_current_path(lua_State *L, int level); |