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

plua_absindex

Declaration

Source position: plua.pas line 40

function plua_absindex(

  L: Plua_State;

  Index: Integer

):Integer;

Arguments

L

  

PLua_State to work with.

Index

  

Stack index to work with.

Function result

Absolute stack index.

Description

Converts a relative stack index into an absolute Lua stack index. As an example -1 will be converted to the top stack index. Mainly used internally by pLua to optimize stack operations.