mirror of
https://github.com/lua/lua
synced 2026-09-26 16:17:11 +03:00
update in 'onelua.c'
This commit is contained in:
parent
13d2326a23
commit
711890624f
1 changed files with 15 additions and 5 deletions
20
onelua.c
20
onelua.c
|
|
@ -5,10 +5,14 @@
|
|||
**
|
||||
** $ gcc -O2 -std=c99 -o lua onelua.c -lm
|
||||
**
|
||||
** or
|
||||
** or (for C89)
|
||||
**
|
||||
** $ gcc -O2 -std=c89 -DLUA_USE_C89 -o lua onelua.c -lm
|
||||
**
|
||||
** or (for Linux)
|
||||
**
|
||||
** gcc -O2 -o lua -DLUA_USE_LINUX -Wl,-E onelua.c -lm -ldl
|
||||
**
|
||||
*/
|
||||
|
||||
/* default is to build the full interpreter */
|
||||
|
|
@ -30,7 +34,15 @@
|
|||
#define LUA_USE_LINUX
|
||||
#define LUA_USE_MACOSX
|
||||
#define LUA_USE_POSIX
|
||||
#define LUA_ANSI
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
** Other specific features
|
||||
*/
|
||||
#if 0
|
||||
#define LUA_32BITS
|
||||
#define LUA_USE_C89
|
||||
#endif
|
||||
|
||||
|
||||
|
|
@ -54,12 +66,10 @@
|
|||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
|
||||
/* setup for luaconf.h */
|
||||
#define LUA_CORE
|
||||
#define LUA_LIB
|
||||
#define ltable_c
|
||||
#define lvm_c
|
||||
|
||||
#include "luaconf.h"
|
||||
|
||||
/* do not export internal symbols */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue