diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-11-09 17:05:42 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-11-09 17:05:42 -0300 |
commit | 024f9064f1b43758eb36aba52547edc0312bf4ba (patch) | |
tree | 9d8609112058e885196a581f0736fbdd94f7f94d /lua.h | |
parent | 7f4906f565ab9f8b1125107a3abae3d759f3ecf2 (diff) | |
download | lua-024f9064f1b43758eb36aba52547edc0312bf4ba.tar.gz lua-024f9064f1b43758eb36aba52547edc0312bf4ba.tar.bz2 lua-024f9064f1b43758eb36aba52547edc0312bf4ba.zip |
External strings
Strings can use external buffers to store their contents.
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -244,6 +244,8 @@ LUA_API void (lua_pushnil) (lua_State *L); | |||
244 | LUA_API void (lua_pushnumber) (lua_State *L, lua_Number n); | 244 | LUA_API void (lua_pushnumber) (lua_State *L, lua_Number n); |
245 | LUA_API void (lua_pushinteger) (lua_State *L, lua_Integer n); | 245 | LUA_API void (lua_pushinteger) (lua_State *L, lua_Integer n); |
246 | LUA_API const char *(lua_pushlstring) (lua_State *L, const char *s, size_t len); | 246 | LUA_API const char *(lua_pushlstring) (lua_State *L, const char *s, size_t len); |
247 | LUA_API const char *(lua_pushextlstring) (lua_State *L, | ||
248 | const char *s, size_t len, lua_Alloc falloc, void *ud); | ||
247 | LUA_API const char *(lua_pushstring) (lua_State *L, const char *s); | 249 | LUA_API const char *(lua_pushstring) (lua_State *L, const char *s); |
248 | LUA_API const char *(lua_pushvfstring) (lua_State *L, const char *fmt, | 250 | LUA_API const char *(lua_pushvfstring) (lua_State *L, const char *fmt, |
249 | va_list argp); | 251 | va_list argp); |