|
NEP 4.3.0
NetCDF Expansion Pack
|
Internal NEP diagnostic-logging macros. More...
#include <stdlib.h>#include <assert.h>Go to the source code of this file.
Macros | |
| #define | NEP_TURN_OFF_LOGGING -1 |
| #define | NEP_DEFAULT_LOG_LEVEL -1 |
| #define | ELOG(e) |
| #define | EBAILLOG(e) |
| #define | EBAIL_QUIET EBAIL |
| #define | EBAIL(e) |
Internal NEP diagnostic-logging macros.
This header is intended for use inside the NEP libraries and UDF handlers. It mirrors the NetCDF-C LOG(()) macro convention used in netcdf-c/libsrc4 and netcdf-c/libhdf5, but uses distinct E-prefixed macro names and routes output through NEP's own nep_log(). This makes NEP logging independent of whether the underlying NetCDF-C build has logging enabled.
The public API for controlling logging is nep_set_log_level(), declared in nep.h.
| #define EBAIL | ( | e | ) |
Log an error message (if logging is enabled), set retval to e, and jump to the exit: cleanup label.
| #define EBAIL_QUIET EBAIL |
When logging is disabled, EBAIL_QUIET is equivalent to EBAIL because no message is emitted either way.
| #define EBAILLOG | ( | e | ) |
No-op when logging is disabled.
| #define ELOG | ( | e | ) |
Suppress diagnostic messages when logging is disabled.
| #define NEP_DEFAULT_LOG_LEVEL -1 |
Default logging level for NEP builds with logging enabled.
| #define NEP_TURN_OFF_LOGGING -1 |
Value passed to nep_set_log_level() to disable logging.