aboutsummaryrefslogtreecommitdiff
path: root/lauxlib.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-11-29 13:55:08 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-11-29 13:55:08 -0200
commit3617e04e972417144169d28184188a082eb40cbb (patch)
tree16741a6a01385963b2ce70cfd01fd917f9b21148 /lauxlib.h
parent8c62bde36fe129454bc818b5ee073267f93fe4ab (diff)
downloadlua-3617e04e972417144169d28184188a082eb40cbb.tar.gz
lua-3617e04e972417144169d28184188a082eb40cbb.tar.bz2
lua-3617e04e972417144169d28184188a082eb40cbb.zip
'lua_load' has an extra argument 'mode'
Diffstat (limited to 'lauxlib.h')
-rw-r--r--lauxlib.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/lauxlib.h b/lauxlib.h
index 9cb09f48..c1aa67c8 100644
--- a/lauxlib.h
+++ b/lauxlib.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lauxlib.h,v 1.118 2011/11/11 19:59:17 roberto Exp roberto $ 2** $Id: lauxlib.h,v 1.119 2011/11/14 17:10:24 roberto Exp roberto $
3** Auxiliary functions for building Lua libraries 3** Auxiliary functions for building Lua libraries
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -77,8 +77,8 @@ LUALIB_API int (luaL_loadfilex) (lua_State *L, const char *filename,
77 77
78#define luaL_loadfile(L,f) luaL_loadfilex(L,f,NULL) 78#define luaL_loadfile(L,f) luaL_loadfilex(L,f,NULL)
79 79
80LUALIB_API int (luaL_loadbuffer) (lua_State *L, const char *buff, size_t sz, 80LUALIB_API int (luaL_loadbufferx) (lua_State *L, const char *buff, size_t sz,
81 const char *name); 81 const char *name, const char *mode);
82LUALIB_API int (luaL_loadstring) (lua_State *L, const char *s); 82LUALIB_API int (luaL_loadstring) (lua_State *L, const char *s);
83 83
84LUALIB_API lua_State *(luaL_newstate) (void); 84LUALIB_API lua_State *(luaL_newstate) (void);
@@ -131,6 +131,8 @@ LUALIB_API void (luaL_requiref) (lua_State *L, const char *modname,
131 131
132#define luaL_opt(L,f,n,d) (lua_isnoneornil(L,(n)) ? (d) : f(L,(n))) 132#define luaL_opt(L,f,n,d) (lua_isnoneornil(L,(n)) ? (d) : f(L,(n)))
133 133
134#define luaL_loadbuffer(L,s,sz,n) luaL_loadbufferx(L,s,sz,n,NULL)
135
134 136
135/* 137/*
136** {====================================================== 138** {======================================================