aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compat53/tests/testmod.c
diff options
context:
space:
mode:
authorGravatar Andrew D. France 2025-07-23 01:24:29 -0500
committerGravatar Andrew D. France 2025-07-23 01:24:29 -0500
commit18052989d5722ba9fe01361b53b98330198dbb1e (patch)
treefbe3bc119b9c2fb9af168c7656ff0d26803b0044 /lib/compat53/tests/testmod.c
parentluaopen_bit32 is called during initialization. This means the bit32 library i... (diff)
- The premake5.lua file has been updated to include the LUA_COMPAT_BITLIB compiler definition. This flag instructs the compat-5.3 submodule to build the actual bit32 library instead of a stub that throws a deprecated error.
- The main function in src/lush.c is modified to explicitly load the bit32 and utf8 libraries into the global Lua state at startup using luaL_requiref. This makes them directly accessible to all scripts running in the shell, which is necessary for the test script to find and use the bit32 functions without a require() call. - Added a null check after luaL_newstate() in src/lush.c to ensure the Lua state is created successfully before its actually used.
Diffstat (limited to 'lib/compat53/tests/testmod.c')
0 files changed, 0 insertions, 0 deletions