|
#define | ZTH_STRINGIFY_(x) #x |
| Helper for ZTH_STRINGIFY() More...
|
|
#define | ZTH_STRINGIFY(x) ZTH_STRINGIFY_(x) |
| Converts the argument to a string literal. More...
|
|
#define | likely(expr) __builtin_expect(!!(expr), 1) |
| Marks the given expression to likely be evaluated to true. More...
|
|
#define | unlikely(expr) __builtin_expect(!!(expr), 0) |
| Marks the given expression to likely be evaluated to true. More...
|
|
#define | ZTH_GET_MACRO_ARGN( _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, NAME, ...) NAME |
| Helper for FOREACH and REVERSE. More...
|
|
#define | FOREACH_0(WHAT) |
| Helper for FOREACH. More...
|
|
#define | FOREACH_1(WHAT, X) WHAT(X) |
| Helper for FOREACH. More...
|
|
#define | FOREACH_2(WHAT, X, ...) WHAT(X) FOREACH_1(WHAT, __VA_ARGS__) |
| Helper for FOREACH. More...
|
|
#define | FOREACH_3(WHAT, X, ...) WHAT(X) FOREACH_2(WHAT, __VA_ARGS__) |
| Helper for FOREACH. More...
|
|
#define | FOREACH_4(WHAT, X, ...) WHAT(X) FOREACH_3(WHAT, __VA_ARGS__) |
| Helper for FOREACH. More...
|
|
#define | FOREACH_5(WHAT, X, ...) WHAT(X) FOREACH_4(WHAT, __VA_ARGS__) |
| Helper for FOREACH. More...
|
|
#define | FOREACH_6(WHAT, X, ...) WHAT(X) FOREACH_5(WHAT, __VA_ARGS__) |
| Helper for FOREACH. More...
|
|
#define | FOREACH_7(WHAT, X, ...) WHAT(X) FOREACH_6(WHAT, __VA_ARGS__) |
| Helper for FOREACH. More...
|
|
#define | FOREACH_8(WHAT, X, ...) WHAT(X) FOREACH_7(WHAT, __VA_ARGS__) |
| Helper for FOREACH. More...
|
|
#define | FOREACH_9(WHAT, X, ...) WHAT(X) FOREACH_8(WHAT, __VA_ARGS__) |
| Helper for FOREACH. More...
|
|
#define | FOREACH_10(WHAT, X, ...) WHAT(X) FOREACH_9(WHAT, __VA_ARGS__) |
| Helper for FOREACH. More...
|
|
#define | FOREACH_11(WHAT, X, ...) WHAT(X) FOREACH_10(WHAT, __VA_ARGS__) |
| Helper for FOREACH. More...
|
|
#define | FOREACH_12(WHAT, X, ...) WHAT(X) FOREACH_11(WHAT, __VA_ARGS__) |
| Helper for FOREACH. More...
|
|
#define | FOREACH_13(WHAT, X, ...) WHAT(X) FOREACH_12(WHAT, __VA_ARGS__) |
| Helper for FOREACH. More...
|
|
#define | FOREACH_14(WHAT, X, ...) WHAT(X) FOREACH_13(WHAT, __VA_ARGS__) |
| Helper for FOREACH. More...
|
|
#define | FOREACH_15(WHAT, X, ...) WHAT(X) FOREACH_14(WHAT, __VA_ARGS__) |
| Helper for FOREACH. More...
|
|
#define | FOREACH_16(WHAT, X, ...) WHAT(X) FOREACH_15(WHAT, __VA_ARGS__) |
| Helper for FOREACH. More...
|
|
#define | FOREACH(action, ...) |
| Evaluates to action(x) for every argument. More...
|
|
#define | REVERSE_0() |
|
#define | REVERSE_1(a) a |
|
#define | REVERSE_2(a, ...) REVERSE_1(__VA_ARGS__), a |
|
#define | REVERSE_3(a, ...) REVERSE_2(__VA_ARGS__), a |
|
#define | REVERSE_4(a, ...) REVERSE_3(__VA_ARGS__), a |
|
#define | REVERSE_5(a, ...) REVERSE_4(__VA_ARGS__), a |
|
#define | REVERSE_6(a, ...) REVERSE_5(__VA_ARGS__), a |
|
#define | REVERSE_7(a, ...) REVERSE_6(__VA_ARGS__), a |
|
#define | REVERSE_8(a, ...) REVERSE_7(__VA_ARGS__), a |
|
#define | REVERSE_9(a, ...) REVERSE_8(__VA_ARGS__), a |
|
#define | REVERSE_10(a, ...) REVERSE_9(__VA_ARGS__), a |
|
#define | REVERSE_11(a, ...) REVERSE_10(__VA_ARGS__), a |
|
#define | REVERSE_12(a, ...) REVERSE_11(__VA_ARGS__), a |
|
#define | REVERSE_13(a, ...) REVERSE_12(__VA_ARGS__), a |
|
#define | REVERSE_14(a, ...) REVERSE_13(__VA_ARGS__), a |
|
#define | REVERSE_15(a, ...) REVERSE_14(__VA_ARGS__), a |
|
#define | REVERSE_16(a, ...) REVERSE_15(__VA_ARGS__), a |
|
#define | REVERSE(...) |
|
#define | ZTH_DBG_PREFIX " > " |
| Prefix for every zth_dbg() call. More...
|
|
#define | zth_dbg(group, fmt, a...) |
| Debug printf()-like function. More...
|
|
#define | zth_assert(expr) |
| assert() , but better integrated in Zth. More...
|
|
#define | ZTH_CLASS_NOCOPY(Class) |
|
|
void | zth_logv (char const *fmt, va_list arg) |
| Prints the given printf()-like formatted string to stdout. More...
|
|
char const * | zth::banner () noexcept |
| Prints a banner line with version and configuration information. More...
|
|
void | zth::abort (char const *fmt,...) noexcept |
| Aborts the process after printing the given printf() formatted message. More...
|
|
void | zth::abortv (char const *fmt, va_list args) noexcept |
| Aborts the process after printing the given printf() formatted message. More...
|
|
void | zth::assert_handler (char const *file, int line, char const *expr) |
|
bool | zth::log_supports_ansi_colors () noexcept |
| Returns if the system supports ANSI colors. More...
|
|
void | zth::log_colorv (int color, char const *fmt, va_list args) |
| Logs a given printf()-like formatted string using an ANSI color code. More...
|
|
void | zth::log_color (int color, char const *fmt,...) |
| Logs a given printf()-like formatted string using an ANSI color code. More...
|
|
void | zth::logv (char const *fmt, va_list arg) |
| Logs a given printf()-like formatted string. More...
|
|
void | zth::log (char const *fmt,...) |
| Logs a given printf()-like formatted string. More...
|
|
string | zth::formatv (char const *fmt, va_list args) |
| Format like vsprintf() , but save the result in an zth::string . More...
|
|
string | zth::format (char const *fmt,...) |
| Format like sprintf() , but save the result in an zth::string . More...
|
|
template<typename T > |
cow_string | zth::str (T value) |
| Returns an zth::string representation of the given value. More...
|
|
template<> |
cow_string | zth::str< char > (char value) |
|
template<> |
cow_string | zth::str< signed char > (signed char value) |
|
template<> |
cow_string | zth::str< unsigned char > (unsigned char value) |
|
template<> |
cow_string | zth::str< short > (short value) |
|
template<> |
cow_string | zth::str< unsigned short > (unsigned short value) |
|
template<> |
cow_string | zth::str< int > (int value) |
|
template<> |
cow_string | zth::str< unsigned int > (unsigned int value) |
|
template<> |
cow_string | zth::str< long > (long value) |
|
template<> |
cow_string | zth::str< unsigned long > (unsigned long value) |
|
template<> |
cow_string | zth::str< long long > (long long value) |
|
template<> |
cow_string | zth::str< unsigned long long > (unsigned long long value) |
|
template<> |
cow_string | zth::str< float > (float value) |
|
template<> |
cow_string | zth::str< double > (double value) |
|
template<> |
cow_string | zth::str< long double > (long double value) |
|
template<> |
cow_string | zth::str< string && > (string &&value) |
|
string | zth::err (int e) |
| Return a string like strerror() does, but as a zth::string . More...
|
|
template<> |
cow_string | zth::str< UniqueIDBase const & > (UniqueIDBase const &value) |
|
void | zth_banner () |
| Prints a banner line with version and configuration information. More...
|
|
void | zth_abort (char const *fmt,...) |
| Aborts the process after printing the given printf() formatted message. More...
|
|
void | zth_log_color (int color, char const *fmt,...) |
| Logs a given printf()-like formatted string using an ANSI color code. More...
|
|
void | zth_log (char const *fmt,...) |
| Logs a given printf()-like formatted string. More...
|
|