File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * one.c -- Lua core, libraries, and interpreter in a single file
2
+ ** Lua core, libraries, and interpreter in a single file.
3
+ ** Compiling just this file generates a complete Lua stand-alone
4
+ ** program:
5
+ **
6
+ ** $ gcc -O2 -std=c99 -o lua onelua.c -lm
7
+ **
8
+ ** or
9
+ **
10
+ ** $ gcc -O2 -std=c89 -DLUA_USE_C89 -o lua onelua.c -lm
11
+ **
3
12
*/
4
13
5
14
/* default is to build the full interpreter */
11
20
#endif
12
21
#endif
13
22
14
- /* choose suitable platform-specific features */
15
- /* some of these may need extra libraries such as -ldl -lreadline -lncurses */
23
+
24
+ /*
25
+ ** Choose suitable platform-specific features. Default is no
26
+ ** platform-specific features. Some of these options may need extra
27
+ ** libraries such as -ldl -lreadline -lncurses
28
+ */
16
29
#if 0
17
30
#define LUA_USE_LINUX
18
31
#define LUA_USE_MACOSX
19
32
#define LUA_USE_POSIX
20
33
#define LUA_ANSI
21
34
#endif
22
35
36
+
23
37
/* no need to change anything below this line ----------------------------- */
24
38
25
39
#include "lprefix.h"
You can’t perform that action at this time.
0 commit comments