summaryrefslogtreecommitdiff
path: root/apps/plugins/lua/rocklib.h
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2018-08-24 00:44:32 +0200
committerWilliam Wilgus <me.theuser@yahoo.com>2018-09-14 01:00:35 +0200
commit733c20d5d3d696a60a7fd7098ca45cb545e78043 (patch)
treef43cc3536114ffbd3811f1491a412b53f57eb259 /apps/plugins/lua/rocklib.h
parentbe801c61bbe95d75e4285da1982017da7fa1736b (diff)
downloadrockbox-733c20d5d3d696a60a7fd7098ca45cb545e78043.tar.gz
rockbox-733c20d5d3d696a60a7fd7098ca45cb545e78043.zip
lua move RLIMAGE to own file
Change-Id: Icd10e4c348deec7729d4a6e2bf1152e1dfc70243
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 @@
23#define _ROCKLIB_H_ 23#define _ROCKLIB_H_
24 24
25#define LUA_ROCKLIBNAME "rb" 25#define LUA_ROCKLIBNAME "rb"
26
27#ifndef ERR_IDX_RANGE
28#define ERR_IDX_RANGE "index out of range"
29#endif
30
31#ifndef ERR_DATA_OVF
32#define ERR_DATA_OVF "data overflow"
33#endif
34
35#ifndef ERR_NO_ALLOC_DBYTES
36#define ERR_NO_ALLOC_DBYTES "Can't allocate %d bytes!"
37#endif
38
39
26LUALIB_API int (luaopen_rock) (lua_State *L); 40LUALIB_API int (luaopen_rock) (lua_State *L);
27const char* get_current_path(lua_State *L, int level); 41const char* get_current_path(lua_State *L, int level);
28 42