Comparison

util-src/pposix.c @ 7926:b009c27818c6

util.pposix: Expose ENOENT constant (usually 2, but you never know)
author Kim Alvefur <zash@zash.se>
date Wed, 01 Mar 2017 17:03:48 +0100
parent 7919:251bf68922d9
child 7931:b619b85e01aa
comparison
equal deleted inserted replaced
7925:209503ee3aaa 7926:b009c27818c6
833 }; 833 };
834 834
835 lua_newtable(L); 835 lua_newtable(L);
836 luaL_setfuncs(L, exports, 0); 836 luaL_setfuncs(L, exports, 0);
837 837
838 #ifdef ENOENT
839 lua_pushinteger(L, ENOENT);
840 lua_setfield(L, -2, "ENOENT");
841 #endif
842
838 lua_pushliteral(L, "pposix"); 843 lua_pushliteral(L, "pposix");
839 lua_setfield(L, -2, "_NAME"); 844 lua_setfield(L, -2, "_NAME");
840 845
841 lua_pushliteral(L, MODULE_VERSION); 846 lua_pushliteral(L, MODULE_VERSION);
842 lua_setfield(L, -2, "_VERSION"); 847 lua_setfield(L, -2, "_VERSION");