MX_DYNFUNC

New MIAMEX sub-function MX_DYNFUNC (193) for DYNFUNC-related utilities.

xcall MIAMEX, MX_DYNFUNC, op, funcname, status, type, size

Parameters

opcode  (num)  [in]

Currently only one opcode, 1, is supported. It returns existence, type, and size info for the specified dynamic function.

funcname  (str)  [in]

Name of the function to inquire about. Case sensitive. Must be tagged with the Dynamic keyword for it to be visible.

status  (signed int)  [out]

Returns 1 if found, 0 if not found, <0 for errors

type  (str)  [out]

Returns the type of the function, which could be an internal type—e.g. "B", "S", "X", "F", or "I"—or a DEFSTRUCT type.

size  (num)  [out]

Returns the length in bytes of the function's return value.