aboutsummaryrefslogtreecommitdiff
path: root/luaconf.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-07-09 11:29:29 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-07-09 11:29:29 -0300
commit31f6540fba010b941b44b2bd21672786d2e63e7f (patch)
tree2824e407b7c04099b7c7f11d47f025c5271f2905 /luaconf.h
parenteab1965c05f2ef71f715347e280733e7657993e4 (diff)
downloadlua-31f6540fba010b941b44b2bd21672786d2e63e7f.tar.gz
lua-31f6540fba010b941b44b2bd21672786d2e63e7f.tar.bz2
lua-31f6540fba010b941b44b2bd21672786d2e63e7f.zip
back with an "open all libs" function
Diffstat (limited to 'luaconf.h')
-rw-r--r--luaconf.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/luaconf.h b/luaconf.h
index a8bcec4a..2f337f96 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: luaconf.h,v 1.7 2004/06/23 15:57:29 roberto Exp roberto $ 2** $Id: luaconf.h,v 1.8 2004/06/29 16:57:56 roberto Exp roberto $
3** Configuration file for Lua 3** Configuration file for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -84,9 +84,15 @@
84#define PROGNAME "lua" 84#define PROGNAME "lua"
85 85
86 86
87#define LUA_EXTRALIBS /* empty */ 87/*
88 88** this macro allows you to open other libraries when starting the
89#define lua_userinit(L) openstdlibs(L) 89** stand-alone interpreter
90*/
91#define lua_userinit(L) luaopen_stdlibs(L)
92/*
93** #define lua_userinit(L) { int luaopen_mylibs(lua_State *L); \
94** luaopen_stdlibs(L); luaopen_mylibs(L); }
95*/
90 96
91 97
92 98