summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2021-09-19 12:59:51 -0500
committersanine <sanine.not@pm.me>2021-09-19 12:59:51 -0500
commit20974430a199d98c59743e6a41e44e61320855d1 (patch)
tree122f3ed4f72b55bc4885c3a3d0f689ae9145dc45
parent85c6ffd806c6f96b321697eb703f828f3d2402e8 (diff)
fix link issue with hs_call
-rw-r--r--CMakeLists.txt1
-rw-r--r--README.md5
-rw-r--r--src/hs_traceback.c2
3 files changed, 7 insertions, 1 deletions
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);