bliss

KISS in Lua
git clone git://bvnf.space/bliss.git
Log | Files | Refs | README | LICENSE

commit 19c8f0461de47a2748968d966df5eb7eb7eaee12
parent e1a5729d78943519c096e755e215592027877606
Author: phoebos <ben@bvnf.space>
Date:   Mon, 11 Nov 2024 21:33:53 +0000

b3sum.c: improve compatibility with Lua 5.1

Diffstat:
Mbliss/b3sum.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/bliss/b3sum.c b/bliss/b3sum.c @@ -90,6 +90,10 @@ const struct luaL_Reg fns[] = { int luaopen_bliss_b3sum(lua_State *L) { +#if LUA_VERSION_NUM > 501 luaL_newlib(L, fns); +#else + luaL_openlib(L, "bliss.b3sum", fns, 0); +#endif return 1; }