nns.c
1.0.1
Nanowire Network simulator
|
Contains an utilities to manage exceptions. Not supposed to be used directly by the user. More...
#include <stdio.h>
#include <stdlib.h>
Go to the source code of this file.
Macros | |
#define | assert(EVAL, ERROR_CODE, ...) |
Macro to perform condition-assertion and exit with the specific error-code in case of error. The macro expects a boolean condition as first input, a possible error code as the second and a message with possible parameters later. This macro will terminate the process execution. More... | |
#define | requires(EVAL, ERROR_CODE, ...) |
Macro to perform condition-assertion and return and error-code in case of an unexpected condition. The macro expects a boolean condition as first input, a possible error code as the second and a message with possible parameters later. More... | |
Contains an utilities to manage exceptions. Not supposed to be used directly by the user.
#define assert | ( | EVAL, | |
ERROR_CODE, | |||
... | |||
) |
Macro to perform condition-assertion and exit with the specific error-code in case of error. The macro expects a boolean condition as first input, a possible error code as the second and a message with possible parameters later. This macro will terminate the process execution.
EVAL | The condition expected to be true. |
ERROR_CODE | The error code to return in case of error. |
VARARG | The formatted error message and the referenced variables. |
#define requires | ( | EVAL, | |
ERROR_CODE, | |||
... | |||
) |
Macro to perform condition-assertion and return and error-code in case of an unexpected condition. The macro expects a boolean condition as first input, a possible error code as the second and a message with possible parameters later.
EVAL | The condition expected to be true. |
ERROR_CODE | The error code to return in case of error. |
VARARG | The formatted error message and the referenced variables. |