NAME

OADL_AddProc - adds a new procedure to the OADL runtime

SYNOPSIS

typedef int (*OADL_AddProc_fp)(void *ctx, OadlVar *pVar, const OADL_U8 instrs[], int numInst)

DESCRIPTION

The OADL_AddProc C API function allows external C/C++ code to dynamically define a new OADL procedure from a sequence of bytecode instructions.

pVar will be initialized with the new Proc value. instrs is a pointer to the bytecode array. numInst is the number of instructions (bytes) in the array.

RETURN VALUE

Returns 1 on success, 0 on failure.

ERRORS

None.

SEE ALSO

OADL_FindProc
OADL_AddExtern