|
Zth (libzth)
|
Functions | |
| char const * | zth_banner () |
| Returns a banner line with version and configuration information. | |
| void | zth_abort (char const *fmt,...) |
| Aborts the process after printing the given printf() formatted message. | |
| void | zth_log_color (int color, char const *fmt,...) |
| Logs a given printf()-like formatted string using an ANSI color code. | |
| void | zth_log_colorv (int color, char const *fmt, va_list args) |
| Logs a given printf()-like formatted string using an ANSI color code. | |
| void | zth_log (char const *fmt,...) |
| Logs a given printf()-like formatted string. | |
| char * | zth_err (int e) |
Return a string like strerror() does, but as a zth::string. | |
| char const * | zth_version () noexcept |
| Returns the version of Zth. | |
| void | zth_logv (char const *fmt, va_list arg) |
| Prints the given printf()-like formatted string to stdout. | |
| void zth_abort | ( | char const * | fmt, |
| ... | |||
| ) |
Aborts the process after printing the given printf() formatted message.
This is a C-wrapper for zth::abort().
| char const * zth_banner | ( | ) |
Returns a banner line with version and configuration information.
This is a C-wrapper for zth::banner().
| char * zth_err | ( | int | e | ) |
Return a string like strerror() does, but as a zth::string.
The returned string is allocated on the heap. After use, pass it to free().
This is a C-wrapper for zth::err().
| void zth_log | ( | char const * | fmt, |
| ... | |||
| ) |
Logs a given printf()-like formatted string.
zth_logv() is used for the actual logging.
This is a C-wrapper for zth::log().
| void zth_log_color | ( | int | color, |
| char const * | fmt, | ||
| ... | |||
| ) |
Logs a given printf()-like formatted string using an ANSI color code.
zth_logv() is used for the actual logging.
This is a C-wrapper for zth::log_color().
| void zth_log_colorv | ( | int | color, |
| char const * | fmt, | ||
| va_list | args | ||
| ) |
Logs a given printf()-like formatted string using an ANSI color code.
zth_logv() is used for the actual logging.
This is a C-wrapper for zth::log_colorv().
| void zth_logv | ( | char const * | fmt, |
| va_list | arg | ||
| ) |
Prints the given printf()-like formatted string to stdout.
This is a weak symbol. Override when required.
Definition at line 19 of file zth_logv.cpp.
|
noexcept |
Returns the version of Zth.
This is a C-wrapper for zth::version().