From 20974430a199d98c59743e6a41e44e61320855d1 Mon Sep 17 00:00:00 2001 From: sanine Date: Sun, 19 Sep 2021 12:59:51 -0500 Subject: fix link issue with hs_call --- CMakeLists.txt | 1 + README.md | 5 +++++ src/hs_traceback.c | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 85f3024..0f5aeb7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,7 @@ set(HONEYSUCKLE_SOURCES ${HS_ROOT}/hs_parse_args.c ${HS_ROOT}/hs_create_table.c ${HS_ROOT}/hs_process_table.c + ${HS_ROOT}/hs_traceback.c ) add_library(honeysuckle ${HONEYSUCKLE_SOURCES}) set_target_properties(honeysuckle PROPERTIES diff --git a/README.md b/README.md index 7dd126d..6919f58 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,11 @@ Installation [(Back to top)](#table-of-contents) +honeysuckle requires CMake and the Lua 5.1 development files. + +First, [download a honeysuckle release](/projects/honeysuckle/releases), +and then do + ```bash mkdir build cd build diff --git a/src/hs_traceback.c b/src/hs_traceback.c index 0fc8266..1830721 100644 --- a/src/hs_traceback.c +++ b/src/hs_traceback.c @@ -27,7 +27,7 @@ int hs_traceback(lua_State *L) int hs_call(lua_State *L, int nargs, int nret) { - int insert_pos = lua_gettop(L) - nargs; + int traceback_pos = lua_gettop(L) - nargs; lua_pushcfunction(L, hs_traceback); lua_insert(L, traceback_pos); -- cgit v1.2.1