about summary refs log tree commit diff stats
path: root/src/lua.c
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-02-26 22:48:48 -0800
committerKartik K. Agaram <vc@akkartik.com>2022-02-26 22:48:48 -0800
commit42526cb15d3cf5798b19e6063443a8260d8bd26f (patch)
treece09317b498212519d24a4ae36c119dc0e77c09d /src/lua.c
parent061e6a21a525fa857fc6f7405ed15b4a5d0a88aa (diff)
downloadteliva-42526cb15d3cf5798b19e6063443a8260d8bd26f.tar.gz
import https://github.com/majek/lua-channels
Also a little test program to demo channels in action.
Diffstat (limited to 'src/lua.c')
-rw-r--r--src/lua.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lua.c b/src/lua.c
index d2ef76e..11a1221 100644
--- a/src/lua.c
+++ b/src/lua.c
@@ -234,6 +234,8 @@ static int pmain (lua_State *L) {
   if (status != 0) return 0;
   status = dorequire(L, "src/json.lua", "json");
   if (status != 0) return 0;
+  status = dorequire(L, "src/task.lua", "task");
+  if (status != 0) return 0;
   lua_gc(L, LUA_GCRESTART, 0);
   s->status = handle_luainit(L);
   if (s->status != 0) return 0;