LUAL_DOSTRING(3) Library Functions Manual LUAL_DOSTRING(3)

luaL_dostringloads and runs the given string, function indicator [-0, +?, m]

#include <lauxlib.h>

int
luaL_dostring(lua_State *L, const char *str);

() loads and runs the given string. It is defined as the following macro:

(luaL_loadstring(L, str) || lua_pcall(L, 0, LUA_MULTRET, 0))

It returns 0 if there are no errors or 1 in case of errors.

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

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

July 24, 2022 Debian