mirror of
https://github.com/lua/lua
synced 2024-11-21 20:31:22 +03:00
Details
Comments in 'onelua.c'
This commit is contained in:
parent
1de2f31694
commit
c4b71b7ba0
20
onelua.c
20
onelua.c
@ -1,5 +1,14 @@
|
|||||||
/*
|
/*
|
||||||
* one.c -- Lua core, libraries, and interpreter in a single file
|
** Lua core, libraries, and interpreter in a single file.
|
||||||
|
** Compiling just this file generates a complete Lua stand-alone
|
||||||
|
** program:
|
||||||
|
**
|
||||||
|
** $ gcc -O2 -std=c99 -o lua onelua.c -lm
|
||||||
|
**
|
||||||
|
** or
|
||||||
|
**
|
||||||
|
** $ gcc -O2 -std=c89 -DLUA_USE_C89 -o lua onelua.c -lm
|
||||||
|
**
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* default is to build the full interpreter */
|
/* default is to build the full interpreter */
|
||||||
@ -11,8 +20,12 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* choose suitable platform-specific features */
|
|
||||||
/* some of these may need extra libraries such as -ldl -lreadline -lncurses */
|
/*
|
||||||
|
** Choose suitable platform-specific features. Default is no
|
||||||
|
** platform-specific features. Some of these options may need extra
|
||||||
|
** libraries such as -ldl -lreadline -lncurses
|
||||||
|
*/
|
||||||
#if 0
|
#if 0
|
||||||
#define LUA_USE_LINUX
|
#define LUA_USE_LINUX
|
||||||
#define LUA_USE_MACOSX
|
#define LUA_USE_MACOSX
|
||||||
@ -20,6 +33,7 @@
|
|||||||
#define LUA_ANSI
|
#define LUA_ANSI
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* no need to change anything below this line ----------------------------- */
|
/* no need to change anything below this line ----------------------------- */
|
||||||
|
|
||||||
#include "lprefix.h"
|
#include "lprefix.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user