summaryrefslogtreecommitdiff
path: root/src/honey.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/honey.c')
-rw-r--r--src/honey.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/honey.c b/src/honey.c
index 9e8bc45..c3b4856 100644
--- a/src/honey.c
+++ b/src/honey.c
@@ -70,6 +70,9 @@ bool honey_setup(lua_State** L)
honey_setup_input(*L);
lua_setfield(*L, -2, "input");
+ lua_pushcfunction(*L, honey_exit);
+ lua_setfield(*L, -2, "exit");
+
lua_setglobal(*L, "honey");
return true;