summaryrefslogtreecommitdiffstats
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.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/plugins/lua/rocklib.h b/apps/plugins/lua/rocklib.h
index 84b5fd2de0..83d82e56ef 100644
--- a/apps/plugins/lua/rocklib.h
+++ b/apps/plugins/lua/rocklib.h
@@ -23,6 +23,20 @@
#define _ROCKLIB_H_
#define LUA_ROCKLIBNAME "rb"
+
+#ifndef ERR_IDX_RANGE
+#define ERR_IDX_RANGE "index out of range"
+#endif
+
+#ifndef ERR_DATA_OVF
+#define ERR_DATA_OVF "data overflow"
+#endif
+
+#ifndef ERR_NO_ALLOC_DBYTES
+#define ERR_NO_ALLOC_DBYTES "Can't allocate %d bytes!"
+#endif
+
+
LUALIB_API int (luaopen_rock) (lua_State *L);
const char* get_current_path(lua_State *L, int level);