void csm_exit(int result);
- Exit Cashmere gracefully. Process 0 (csm_pid = 0) waits for all
other processes to call csm_exit before exiting.
void CSM_ASSERT(int expression);
- If expression evaluates to FALSE (0), the application terminates
after printing a warning that the assertion failed and dumping core.
If the expression evaluates to TRUE (!= 0), CSM_ASSERT does nothing.
If the preprocessor macro "NDEBUG" is defined, all CSM_ASSERT call
will effectively be removed from the program.
void CSM_ASSERT_ALWAYS(int expression);
- CSM_ASSERT_ALWAYS functions equivalent to CSM_ASSERT, except it
cannot be disabled by defining the "NDEBUG" macro.
- Terminates the application forcefully. All processes will be
sent a signal to terminate immediately.