diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-06-03 17:11:41 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-06-03 17:11:41 -0300 |
| commit | ad7103ea3aed7f40a5cf7055af253b34320134bc (patch) | |
| tree | 978a750ba9c4cb990ece1fe6280f3806acbe6fce /lauxlib.h | |
| parent | 0079e0f57ce2bd4dc40b9b7c5831c58764a7938f (diff) | |
| download | lua-ad7103ea3aed7f40a5cf7055af253b34320134bc.tar.gz lua-ad7103ea3aed7f40a5cf7055af253b34320134bc.tar.bz2 lua-ad7103ea3aed7f40a5cf7055af253b34320134bc.zip | |
lua_load* defined in auxlib (and so renamed to luaL_load*)
Diffstat (limited to 'lauxlib.h')
| -rw-r--r-- | lauxlib.h | 12 |
1 files changed, 11 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lauxlib.h,v 1.46 2002/05/06 19:05:10 roberto Exp roberto $ | 2 | ** $Id: lauxlib.h,v 1.47 2002/05/16 18:39:46 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 | */ |
| @@ -51,6 +51,10 @@ LUALIB_API int luaL_findstring (const char *name, | |||
| 51 | LUALIB_API int luaL_ref (lua_State *L, int t); | 51 | LUALIB_API int luaL_ref (lua_State *L, int t); |
| 52 | LUALIB_API void luaL_unref (lua_State *L, int t, int ref); | 52 | LUALIB_API void luaL_unref (lua_State *L, int t, int ref); |
| 53 | 53 | ||
| 54 | LUALIB_API int luaL_loadfile (lua_State *L, const char *filename); | ||
| 55 | LUALIB_API int luaL_loadbuffer (lua_State *L, const char *buff, size_t size, | ||
| 56 | const char *name); | ||
| 57 | |||
| 54 | 58 | ||
| 55 | 59 | ||
| 56 | /* | 60 | /* |
| @@ -113,6 +117,12 @@ LUALIB_API void luaL_pushresult (luaL_Buffer *B); | |||
| 113 | #define luaL_checktype luaL_check_type | 117 | #define luaL_checktype luaL_check_type |
| 114 | #define luaL_checkany luaL_check_any | 118 | #define luaL_checkany luaL_check_any |
| 115 | 119 | ||
| 120 | LUALIB_API int lua_call (lua_State *L, int nargs, int nresults); | ||
| 121 | LUALIB_API int lua_dofile (lua_State *L, const char *filename); | ||
| 122 | LUALIB_API int lua_dostring (lua_State *L, const char *str); | ||
| 123 | LUALIB_API int lua_dobuffer (lua_State *L, const char *buff, size_t size, | ||
| 124 | const char *name); | ||
| 125 | |||
| 116 | 126 | ||
| 117 | #endif | 127 | #endif |
| 118 | 128 | ||
