diff options
author | Aki <please@ignore.pl> | 2021-08-15 13:34:57 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2021-08-15 13:34:57 +0200 |
commit | 2837a4ff324f1f1b92f6f96791b5bad844135681 (patch) | |
tree | 17a30d8ef1ece244138b00d90d5f28432b85bb7f | |
parent | 83458bc03c1527d637c1c2ec15e7a39aa05a62fd (diff) | |
download | plop-2837a4ff324f1f1b92f6f96791b5bad844135681.zip plop-2837a4ff324f1f1b92f6f96791b5bad844135681.tar.gz plop-2837a4ff324f1f1b92f6f96791b5bad844135681.tar.bz2 |
Upgraded to Lua 5.4
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | plop.c | 3 |
2 files changed, 4 insertions, 3 deletions
@@ -1,6 +1,6 @@ CFLAGS+=-std=c11 -Wall -Wextra -Wpedantic -D_POSIX_C_SOURCE=200809L -CFLAGS+=-I/usr/include/lua5.3 -LDLIBS+=-llua5.3 +CFLAGS+=`pkg-config --cflags lua5.4` +LDLIBS+=`pkg-config --libs lua5.4` PREFIX?=/usr/local SHARE?=$(PREFIX)/share @@ -157,7 +157,8 @@ int plop_handle_client(lua_State * L, struct epoll_event * event) nargs = 1; } - int result = lua_resume(c->L, NULL, nargs); + int nresults = 0; + int result = lua_resume(c->L, NULL, nargs, &nresults); switch (result) { |