changeset 9509 | ae6636052be9 |
parent 9481 | bd178ed0459b |
child 9510 | 33d21f020b66 |
--- a/util-src/poll.c Sun Oct 14 14:32:02 2018 +0200 +++ b/util-src/poll.c Fri Oct 12 03:20:09 2018 +0200 @@ -452,10 +452,16 @@ #endif } - lua_createtable(L, 0, 1); + lua_createtable(L, 0, 2); { lua_pushcfunction(L, Lnew); lua_setfield(L, -2, "new"); + +#define push_errno(named_error) lua_pushinteger(L, named_error);\ + lua_setfield(L, -2, #named_error); + + push_errno(EEXIST); + } return 1; }