Download The Ch Language Environment Embedded Ch SDK User's Guide

Transcript
Chapter A: APIs for Embedding Ch — <embedch.h>
Ch
Ch
Ch
Ch
Ch
VarArgsAddArg
VarArgsAddArgExpr
VarArgsDelete
VaEnd
VaStart
Ch Version
Add an argument into a Ch style variable argument list.
Add an argument in expression into a Ch style variable argument list.
Delete a Ch style variable argument list and release its memory.
For a normal return from a function.
Obtain an instance of Ch interpreter and
initialize a handle for reference to arguments of a function in Ch.
Obtain the version information for Ch.
Macros
The return value for most Embedded Ch APIs has the following values defined inside the header file ch.h.
Value
Description
CH ABORT
CH ERROR
CH OK
1 when Ch Abort() is called.
-1 for failure of a Ch SDK API call.
0 for success of a Ch SDK API call.
205