Software /
code /
prosody
Diff
util-src/hashes.c @ 7818:54669df178c2
util-src: Make C modules assert that the Lua runtime matches what it was compiled for
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 08 Jan 2017 14:21:08 +0100 |
parent | 6789:6b180e77c97a |
child | 7835:a809dcfd0c5b |
line wrap: on
line diff
--- a/util-src/hashes.c Fri Jan 06 13:14:17 2017 +0100 +++ b/util-src/hashes.c Sun Jan 08 14:21:08 2017 +0100 @@ -212,6 +212,9 @@ }; LUALIB_API int luaopen_util_hashes(lua_State* L) { +#if (LUA_VERSION_NUM > 501) + luaL_checkversion(L); +#endif lua_newtable(L); luaL_setfuncs(L, Reg, 0);; lua_pushliteral(L, "-3.14");