LUA_STATUS(3) Library Functions Manual LUA_STATUS(3)

lua_statusreturns the status of the thread L, function indicator [-0, +0, -]

#include <lua.h>

int
lua_status(lua_State *L);

() returns the status of the thread L.

The status can be 0 for a normal thread, an error code if the thread finished its execution with an error, or LUA_YIELD if the thread is suspended.

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

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

July 14, 2022 Debian