LC:()(), LCCall()() Function

Purpose

Executes a subroutine at a specified address and returns a 64-bit integer (Large) value.

Syntax

x = LC:(addr)([parameters])

x = LCCall(addr)([parameters])

x:64-bit integer
addr:iexp
parameters:aexp

Description

The LC:()() and LCCall()() functions call a C or an assembler subroutine at address addr%. The parameters are placed in from right to left on the stack. The last parameter is the first on the stack.

LC:()() return with a simple ret instruction. The caller must correct the stack.

The parameters can be coerced to a specific format by preceding the value with one of the following designators:

Dbl: double

Sng: float, single

Large: Large integer

Cur: Currency value

L: Long

Int: Integer

Var: Variant

Example

Remarks

See Also

C:(), P:(), LP:(), Call(), CallX(), CCall(), PasCall(), LPasCall(), StdCall(), LStdCall()

{Created by Sjouke Hamstra; Last updated: 12/05/14 by James Gaite}