diff options
| author | 2025-07-22 23:30:27 -0500 | |
|---|---|---|
| committer | 2025-07-22 23:30:27 -0500 | |
| commit | 8f1b0212b219aa97116923876adfab5b90f5986a (patch) | |
| tree | 371c08a13a2c49fbd39d301491073167fb2a4d5c | |
| parent | Compat53 library uses the floor function, which is part of the C math library... (diff) | |
src/lush.c ln:1500-1508: corrected the 'luaL' typos
| -rw-r--r-- | src/lush.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1492,12 +1492,12 @@ int main(int argc, char *argv[]) { // init lua state lua_State *L = luaL_newstate(); - luaL_openlibs(L); + lua_openlibs(L); // --- Pre-load compat modules --- // This is to make C modules available to Lua - luaL_getglobal(L, "package"); - luaL_getfield(L, -1, "preload"); + lua_getglobal(L, "package"); + lua_getfield(L, -1, "preload"); // Preload bit32 for Lua 5.1 compatibility lua_pushcfunction(L, luaopen_bit32); |
