diff options
Diffstat (limited to 'src/honeysuckle.h')
-rw-r--r-- | src/honeysuckle.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/honeysuckle.h b/src/honeysuckle.h index 7538791..b996aed 100644 --- a/src/honeysuckle.h +++ b/src/honeysuckle.h @@ -5,7 +5,6 @@ #include <lualib.h> #include <lauxlib.h> - #define HS_END 0 /* type constants */ @@ -21,7 +20,26 @@ #define HS_NIL 10 #define HS_ANY 11 +const char* hs_type_to_string(int type); + +void hs_parse_args(lua_State *L, ...); +void hs_parse_args_fast(lua_State *L, ...); +int hs_parse_overloaded(lua_State *L, ...); + +int hs_create_table(lua_State *L, ...); +int hs_create_enum(lua_State *L, ...); + +void hs_process_table(lua_State *L, int table_index, void *data, ...); + +void hs_throw_error(lua_State *L, const char *format_string, ...); +int hs_traceback(lua_State *L); +int hs_call(lua_State *L); +int hs_call_args(lua_State *L, ...); void hs_pushstring(lua_State *L, const char *format_string, ...); +#define hs_rstore(L) luaL_ref(L, LUA_REGISTRYINDEX); +#define hs_rload(L, ref) lua_rawgeti(L, LUA_REGISTRYINDEX, ref) +#define hs_rdel(L, ref) luaL_unref(L, LUA_REGISTRYINDEX, ref) + #endif |