summaryrefslogtreecommitdiff
path: root/apps/plugins/lua/rocklib.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lua/rocklib.h')
-rw-r--r--apps/plugins/lua/rocklib.h16
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 38struct lua_int_reg {
39 char const* name;
40 const int value;
41};
42
43struct lua_str_reg {
44 char const* name;
45 char const* value;
46};
39 47
40LUALIB_API int (luaopen_rock) (lua_State *L); 48LUALIB_API int (luaopen_rock) (lua_State *L);
41const char* get_current_path(lua_State *L, int level); 49const char* get_current_path(lua_State *L, int level);