Skip to content

Commit f884461

Browse files
att
1 parent fcae500 commit f884461

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

1313
int main() {
@@ -52,7 +52,7 @@ int main() {
5252
and 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
5656
cc 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
6262
if 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)
6969
if 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
```
7474
than you can generate your bytecodes with
7575
```bash

0 commit comments

Comments
 (0)