LUAL_LOADSTRING(3) Library Functions Manual LUAL_LOADSTRING(3)

luaL_loadstringloads a string as a Lua chunk, function indicator [-0, +1, m]

#include <lauxlib.h>

int
luaL_loadstring(lua_State *L, const char *s);

() loads a string as a Lua chunk. This function uses lua_load(3) to load the chunk in the zero-terminated string s.

This function returns the same results as lua_load(3).

Also as lua_load(3), this function only loads the chunk; it does not run it.

lua_load(3)

Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes, Lua 5.1 Reference Manual.

The luaL_loadstring() manual page is based on Lua Reference Manual 5.1 and was created by Sergey Bronnikov.

July 24, 2022 Debian