summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2021-05-23 22:54:25 -0500
committersanine-a <sanine.not@pm.me>2021-05-23 22:54:25 -0500
commit30211fa4a3d65e7f26640d0c2caba3e5b48312b1 (patch)
tree13b47569a3b1f45b2fd899d51c734dfd71c82a7d
parente06165088c13cd31819a7b1bb1a2ba9e5aaf689e (diff)
add all function definitions in honeysuckle.h
-rw-r--r--src/honeysuckle.h20
-rw-r--r--src/test.c3
2 files changed, 21 insertions, 2 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
diff --git a/src/test.c b/src/test.c
index 5275d4d..5a74414 100644
--- a/src/test.c
+++ b/src/test.c
@@ -7,7 +7,8 @@
#include "honeysuckle.h"
-/* minunit testing macros modified from those at www.jera.com/techinfo/jtns/jtn002.html */
+/* minunit testing macros modified from those at
+ www.jera.com/techinfo/jtns/jtn002.html */
#define mu_assert(message, test) do { if (!(test)) return message; } while (0)
#define mu_run_test(name, test) do { \
lua_State *L = luaL_newstate(); \