diff options
| author | Alex Pickering <alex@cogarr.net> | 2021-09-12 16:58:26 -0500 |
|---|---|---|
| committer | Alex Pickering <alex@cogarr.net> | 2021-09-12 16:58:26 -0500 |
| commit | 346304da786a652f25f73ee80957ec6fd16716c8 (patch) | |
| tree | 682717483aa24b6119d82856d48038345f44f7aa /src/lua-nng-common.h | |
| parent | 835cda73fe2cf1d8c99d7599e9bfb92cd70444e9 (diff) | |
| download | lua-nng-346304da786a652f25f73ee80957ec6fd16716c8.tar.gz lua-nng-346304da786a652f25f73ee80957ec6fd16716c8.tar.bz2 lua-nng-346304da786a652f25f73ee80957ec6fd16716c8.zip | |
Line endings to unix
Convert all line endings to unix line endings.
Diffstat (limited to 'src/lua-nng-common.h')
| -rw-r--r-- | src/lua-nng-common.h | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/src/lua-nng-common.h b/src/lua-nng-common.h index a56dd8a..ffdc4c7 100644 --- a/src/lua-nng-common.h +++ b/src/lua-nng-common.h @@ -1,6 +1,16 @@ -#include <lua.h>
-#include <lualib.h>
-#include <lauxlib.h>
-
-// lua runtime's traceback function
-int traceback (lua_State *L);
+#include <lua.h> +#include <lualib.h> +#include <lauxlib.h> + +/* +Lua version independence 5.1+ +*/ +#ifndef luaL_newlib + #define luaL_newlib(l,r) luaL_register(l,NULL,r) +#endif +#ifndef luaL_setmetatable + #define luaL_setmetatable(l,s) luaL_getmetatable(l,s); lua_setmetatable(l,-2); +#endif + +// lua runtime's traceback function +int traceback (lua_State *L); |
