[Overview][Types][Classes][Procedures and functions] | Reference for unit 'pLua' (#pLua)

# plua_pushstring

## Declaration

Source position: plua.pas line 19

`procedure plua_pushstring(`
`L: Plua_State;`
`AString: AnsiString`
`);`

## Arguments

`L` |  | PLua_State to work with.
`AString` |  | AnsiString to be placed onto the Lua stack.

## Description

Pushes the null-terminated AnsiString specified in AString onto the stack. Lua makes (or reuses) an internal copy of the given string, so the memory at AString can be freed or reused immediately after the function returns. The string cannot contain embedded NULL's; as the string is assumed to end at the first null or #0.

## See also

lua.lua_pushstring |  |