summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);