Zen API | Contents | Reference | Previous | Up | Next

Macros
Zen API Macros

Zen macros.

Macros

Macro | Description
ZAPI_64S | 64-bit signed integer literal.
ZAPI_64U | 64-bit unsigned integer literal.
zCHECK | If the expression result is not zOK, the current function will return the expression result.
zCOUNT | Reports number of elements in a C array.
zEXCEPT_CATCH | Closes a try block and opens a catch block. If STATUS_POINTER is not null, STATUS_POINTER receives the exception code and exception code is cleared.
zEXCEPT_CHECK | Throws an exception if the expression does not evaluate to zOK. Use this macro within try blocks.
zEXCEPT_CLEAR | Clears the exception code. Use this macro within catch or finally blocks.
zEXCEPT_CLOSE | Exits the current function and returns the exception code, unless the code is zOK. Must be the final statement within a finally block.
zEXCEPT_FINALLY | Closes a catch block and opens a finally block.
zEXCEPT_SET | Modifies the exception code. Use this macro within catch or finally blocks.
zEXCEPT_THROW | Throws an exception with the given status code. Use this macro within try blocks.
zEXCEPT_TRY | Opens a try block.
zIP_ADDRESS_ANY | Used to request an automatically assigned IP address.
zIP_ADDRESS_BROADCAST | Destination address for broadcast datagrams.
zIP_ADDRESS_LOOPBACK | Address for loopback communication.
zIP_PORT_ANY | Used to request an automatically assigned port.
zIS_NIL | Tests handle for equality with null handle.
zIS_NULL | Tests pointer for equality with null pointer.
zMATH_MAX | Returns the maximum of two numbers.
zMATH_MIN | Returns the minimum of two numbers.
zSUCCESS | Converts a zStatus value to a zBool value.
zVERSION_CREATE | Creates a version value from its constituent parts.

Copyright (c) 2008-2010 by LMI Technologies Inc. All rights reserved.
Contents | Reference