Line 12:
Line 12:
The source code comes with a functioning example. To use the example, you need to copy the 'test.lua' to the root of your SD card, then run the lua.elf, either from Wiiload, the HBC menu, or (possibly- not tested yet) any other homebrew bootloader.
The source code comes with a functioning example. To use the example, you need to copy the 'test.lua' to the root of your SD card, then run the lua.elf, either from Wiiload, the HBC menu, or (possibly- not tested yet) any other homebrew bootloader.
+
+
== Build ==
+
Go to lua\lua-5.1.3
+
make local
+
copy liblua.a to your lib directory and lauxlib.h lua.h lua.hpp luaconf.h lualib.h to your include/lua lib
+
add -llua to your makefile LIBS before lib math (-lm) because Lua depends on it (lmathlib.o and lvm.o objects).
+
== Reasons To Use Lua ==
== Reasons To Use Lua ==