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

plua_tovariant

Declaration

Source position: plua.pas line 38

function plua_tovariant(

  L: Plua_State;

  Index: Integer

):Variant;

Arguments

L

  

PLua_State to work with.

Index

  

Stack index to work with.

Function result

Value of the item on the stack.

Description

Converts the Lua Stack Item at the given index to a Pascal Variant for use in code. Slower then direct calls to lua_to and plua_to, but more flexable.

See also

plua_pushVariant

  

plua_TableToVariantArray