LUA_PUSHLITERAL(3) Library Functions Manual LUA_PUSHLITERAL(3)

lua_pushliteralpushes the string onto the stack, function indicator [-0, +1, m]

#include <lua.h>

void
lua_pushliteral(lua_State *L, const char *s);

() pushes the string pointed to by s onto the stack. This macro is equivalent to lua_pushlstring(3), but can be used only when s is a literal string. In these cases, it automatically provides the string length.

lua_pushlstring(3)

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

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

July 18, 2022 Debian