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 @@ #define ERR_DATA_OVF "data overflow" #endif -#ifndef ERR_NO_ALLOC_DBYTES -#define ERR_NO_ALLOC_DBYTES "Can't allocate %d bytes!" -#endif - +#define RB_CONSTANT(x) {#x, x} +#define RB_STRING_CONSTANT(x) RB_CONSTANT(x) + +struct lua_int_reg { + char const* name; + const int value; +}; + +struct lua_str_reg { + char const* name; + char const* value; +}; LUALIB_API int (luaopen_rock) (lua_State *L); const char* get_current_path(lua_State *L, int level); |