From 059503257523bf24b31f7f15a8a5761f2e5f2313 Mon Sep 17 00:00:00 2001 From: amelia squires Date: Mon, 24 Feb 2025 13:23:19 -0600 Subject: error handling and parse_url on srequest --- src/lua.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/lua.h') diff --git a/src/lua.h b/src/lua.h index ccc632d..4823ba0 100644 --- a/src/lua.h +++ b/src/lua.h @@ -60,6 +60,12 @@ void lua_set_global_table(lua_State*); lua_settable(L, Tidx);\ lua_pop(L, 1);} +#define luaI_error(L, en, str){\ + lua_pushnil(L);\ + lua_pushstring(L, str);\ + lua_pushinteger(L, en);\ + return 3;} + int writer(lua_State*, const void*, size_t, void*); -- cgit v1.2.3