From 733c20d5d3d696a60a7fd7098ca45cb545e78043 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Fri, 24 Aug 2018 00:44:32 +0200 Subject: lua move RLIMAGE to own file Change-Id: Icd10e4c348deec7729d4a6e2bf1152e1dfc70243 --- apps/plugins/lua/rocklib.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'apps/plugins/lua/rocklib.h') 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); -- cgit v1.2.3