diff options
author | sanine <sanine.not@pm.me> | 2021-08-21 23:06:27 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2021-08-21 23:06:27 -0500 |
commit | cd4a04ee73e50056f3d04e9f13b490dbf5ed800a (patch) | |
tree | c3f758f6b9eb1a052faec9976535d605249f41b8 /src/honeysuckle.c | |
parent | 9899cea5784437667128e6335e4359dd47bc5d63 (diff) |
begin refactoring tests to reflect struct-based API and implement hs_pushstring()
Diffstat (limited to 'src/honeysuckle.c')
-rw-r--r-- | src/honeysuckle.c | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/src/honeysuckle.c b/src/honeysuckle.c index 339b278..1d8da6b 100644 --- a/src/honeysuckle.c +++ b/src/honeysuckle.c @@ -1,18 +1,11 @@ #include "honeysuckle.h" -const char* hs_type_to_string(int type) -{ - type = type; - return "mock"; -} - - -void hs_parse_args(lua_State *L, ...) +void hs_parse_args_(lua_State *L, int n_args, struct hs_arg *arguments) { L = L; } -int hs_parse_overloaded(lua_State *L, ...) +int hs_parse_overloaded_(lua_State *L, ...) { L = L; return -1; @@ -45,17 +38,3 @@ void hs_pt_set_boolean(bool value, void *data) { value=value; data=data; } void hs_pt_set_integer(lua_Integer value, void *data) { value=value; data=data; } void hs_pt_set_number(lua_Number value, void *data) { value=value; data=data; } void hs_pt_set_string(const char *value, void *data) { value=value; data=data; } - - -void hs_throw_error(lua_State *L, const char *format_string, ...) -{ - L = L; - format_string = format_string; -} - - -void hs_pushstring(lua_State *L, const char *format_string, ...) -{ - lua_pushnumber(L, 0.4); - format_string = format_string; -} |