Improvement Release
This build uses lua5.3.4. Licenses included with the src.
- Added -D to define globals
- Uses size_t now
- More standard compliant
- Configured to support multiple OS differences
- Code organizations
Includes testing.lua, which prints out arguments inputted using the -n switch at the end. Also now displays use of the -D switch.
Compiled on Intel machine using mingw64.
Instructions:
Make a folder in your C:\Program Files\ or where ever and make a 'bin' folder. Shove lua.exe and luaw.exe into it. Add this 'bin' folder to your path. C:\Program Files\LuaConsole\bin, for example. Or just use the README.md's method and shove them into C:\Windows\System32.
Use luaw when you want to do stuff in lua and use the interpreter
@echo off
rem Debug version
rem Compile everything debug
gcc -Wall -Wextra -O0 -g3 -c *.c
rem Link lua_debug.exe
gcc -Wall -Wextra -O0 -g3 -o lua_debug.exe console.o additions.o -llua
rem Link luaw_debug.exe
gcc -Wall -Wextra -O0 -g3 -o luaw_debug.exe consolew.o additions.o -llua
rem Release version
rem Compile everything release
gcc -Wall -Wextra -O2 -g0 -c *.c
rem Link luaw.exe
gcc -Wall -Wextra -O2 -g0 -o lua.exe console.o additions.o -llua
rem Link lua.exe
gcc -Wall -Wextra -O2 -g0 -o luaw.exe consolew.o additions.o -llua