File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ if you want to embed lua in single compilation, create a **test.c** file:
77
88``` c
99#define LUA_SINGLE_UNITY_EMBED_MODE
10- #define LUA_SINGLE_UNITY_GUESS_OSS
10+ #define LUA_SINGLE_UNITY_GUESS_OS
1111#include " lua_single_unity_classic_onelua.c"
1212
1313int main () {
@@ -52,7 +52,7 @@ int main() {
5252and compile with:
5353
5454``` bash
55- cc -c lua_single_unity_classic_onelua.c -DLUA_SINGLE_UNITY_GUESS_OSS -DLUA_SINGLE_UNITY_EMBED_MODE
55+ cc -c lua_single_unity_classic_onelua.c -DLUA_SINGLE_UNITY_GUESS_OS -DLUA_SINGLE_UNITY_EMBED_MODE
5656cc test.c lua_single_unity_classic_onelua.o -lm
5757```
5858
@@ -62,14 +62,14 @@ cc test.c lua_single_unity_classic_onelua.o -lm
6262if you want to compile the ** lua_runtime** , you can compile with:
6363
6464``` bash
65- cc lua_single_unity_classic_onelua.c -DLUA_SINGLE_UNITY_GUESS_OSS -lm -o lua_runtime
65+ cc lua_single_unity_classic_onelua.c -DLUA_SINGLE_UNITY_GUESS_OS -lm -o lua_runtime
6666```
6767
6868## Compiling luac (lua bytecode compiler)
6969if you want to compile the ** luac** , you can compile with:
7070
7171``` bash
72- cc lua_single_unity_classic_onelua.c -DLUA_SINGLE_UNITY_GUESS_OSS -DLUA_SINGLE_UNITY_INPLEMENT_LUAC -lm -o luac
72+ cc lua_single_unity_classic_onelua.c -DLUA_SINGLE_UNITY_GUESS_OS -DLUA_SINGLE_UNITY_INPLEMENT_LUAC -lm -o luac
7373```
7474than you can generate your bytecodes with
7575``` bash
You can’t perform that action at this time.
0 commit comments