|
Gamp v0.0.7-36-g24b1eb6
Gamp: Graphics, Audio, Multimedia and Processing
|
#include <memory>#include <cstdint>#include <cinttypes>#include <cstring>#include <string>#include <cstdio>#include <cstdarg>#include <errno.h>#include <jau/environment.hpp>#include <jau/backtrace.hpp>Go to the source code of this file.
Namespaces | |
| namespace | jau |
| __pack(...): Produces MSVC, clang and gcc compatible lead-in and -out macros. | |
Macros | |
| #define | ABORT(...) |
| Use for unconditional ::abort() call with given messages, prefix '[elapsed_time] ABORT @ file:line func: '. | |
| #define | COND_PRINT(C, ...) |
| Use for conditional plain messages, prefix '[elapsed_time] '. | |
| #define | DBG_ERR_PRINT(...) |
| Use for environment-variable environment::DEBUG conditional error messages, prefix '[elapsed_time] Warning @ FILE:LINE FUNC: '. | |
| #define | DBG_JNI_PRINT(...) |
| Use for environment-variable environment::DEBUG_JNI conditional debug messages, prefix '[elapsed_time] Debug: '. | |
| #define | DBG_PRINT(...) |
| Use for environment-variable environment::DEBUG conditional debug messages, prefix '[elapsed_time] Debug: '. | |
| #define | DBG_WARN_PRINT(...) |
| Use for environment-variable environment::DEBUG conditional warning messages, prefix '[elapsed_time] Warning @ FILE:LINE FUNC: '. | |
| #define | ERR_PRINT(...) |
| Use for unconditional error messages, prefix '[elapsed_time] Error @ FILE:LINE FUNC: '. | |
| #define | ERR_PRINT2(...) |
| Use for unconditional error messages, prefix '[elapsed_time] Error @ FILE:LINE FUNC: '. | |
| #define | IRQ_PRINT(...) |
| Use for unconditional interruption messages, prefix '[elapsed_time] Interrupted @ FILE:LINE FUNC: '. | |
| #define | PERF2_TS_T0() |
| #define | PERF2_TS_TD(m) |
| #define | PERF3_TS_T0() |
| #define | PERF3_TS_TD(m) |
| #define | PERF_TS_T0() |
| #define | PERF_TS_T0_BASE() |
| #define | PERF_TS_TD(m) |
| #define | PERF_TS_TD_BASE(m) |
| #define | WARN_PRINT(...) |
| Use for unconditional warning messages, prefix '[elapsed_time] Warning @ FILE:LINE FUNC: '. | |
| #define | WORDY_PRINT(...) |
| Use for environment-variable environment::VERBOSE conditional verbose messages, prefix '[elapsed_time] Wordy: '. | |
Functions | |
| void | jau::ABORT_impl (const char *func, const char *file, const int line, const char *format,...) noexcept |
| Use for unconditional ::abort() call with given messages, prefix '[elapsed_time] ABORT @ file:line func: '. | |
| void | jau::COND_PRINT_impl (const char *format,...) noexcept |
| void | jau::DBG_PRINT_impl (const char *format,...) noexcept |
| void | jau::ERR_PRINT_impl (const char *prefix, const bool backtrace, const char *func, const char *file, const int line, const char *format,...) noexcept |
| void | jau::ERR_PRINTv (const char *func, const char *file, const int line, const char *format, va_list args) noexcept |
| Use for unconditional error messages, prefix '[elapsed_time] Error @ file:line func: '. | |
| int | jau::fprintf_td (const uint64_t elapsed_ms, FILE *stream, const char *format,...) noexcept |
| Convenient fprintf() invocation, prepending the given elapsed_ms timestamp. | |
| int | jau::fprintf_td (FILE *stream, const char *format,...) noexcept |
| Convenient fprintf() invocation, prepending the environment::getElapsedMillisecond() timestamp. | |
| void | jau::INFO_PRINT (const char *format,...) noexcept |
| Use for unconditional informal messages, prefix '[elapsed_time] Info: '. | |
| void | jau::PLAIN_PRINT (const bool printPrefix, const char *format,...) noexcept |
| Use for unconditional plain messages, prefix '[elapsed_time] ' if printPrefix == true. | |
| template<class List> | |
| void | jau::printSharedPtrList (const std::string &prefix, List &list) noexcept |
| void | jau::WARN_PRINT_impl (const char *func, const char *file, const int line, const char *format,...) noexcept |
| void | jau::WARN_PRINTv (const char *func, const char *file, const int line, const char *format, va_list args) noexcept |
| Use for unconditional warning messages, prefix '[elapsed_time] Warning @ file:line func: '. | |
| void | jau::WORDY_PRINT_impl (const char *format,...) noexcept |
| #define DBG_PRINT | ( | ... | ) |
Use for environment-variable environment::DEBUG conditional debug messages, prefix '[elapsed_time] Debug: '.
| #define DBG_WARN_PRINT | ( | ... | ) |
Use for environment-variable environment::DEBUG conditional warning messages, prefix '[elapsed_time] Warning @ FILE:LINE FUNC: '.
| #define DBG_ERR_PRINT | ( | ... | ) |
Use for environment-variable environment::DEBUG conditional error messages, prefix '[elapsed_time] Warning @ FILE:LINE FUNC: '.
Function also appends last errno, strerror(errno) and full backtrace
| #define DBG_JNI_PRINT | ( | ... | ) |
Use for environment-variable environment::DEBUG_JNI conditional debug messages, prefix '[elapsed_time] Debug: '.
| #define WORDY_PRINT | ( | ... | ) |
Use for environment-variable environment::VERBOSE conditional verbose messages, prefix '[elapsed_time] Wordy: '.
'Wordy' is the shorter English form of the Latin word 'verbosus', from which the word 'verbosity' is sourced.
| #define PERF_TS_T0_BASE | ( | ) |
| #define PERF_TS_TD_BASE | ( | m | ) |
| #define ABORT | ( | ... | ) |
Use for unconditional ::abort() call with given messages, prefix '[elapsed_time] ABORT @ file:line func: '.
Function also appends last errno and strerror(errno).
| #define ERR_PRINT | ( | ... | ) |
Use for unconditional error messages, prefix '[elapsed_time] Error @ FILE:LINE FUNC: '.
Function also appends last errno, strerror(errno) and full backtrace
| #define ERR_PRINT2 | ( | ... | ) |
Use for unconditional error messages, prefix '[elapsed_time] Error @ FILE:LINE FUNC: '.
Function also appends last errno and strerror(errno). No backtrace.
| #define IRQ_PRINT | ( | ... | ) |
Use for unconditional interruption messages, prefix '[elapsed_time] Interrupted @ FILE:LINE FUNC: '.
Function also appends last errno and strerror(errno).
| #define WARN_PRINT | ( | ... | ) |
Use for unconditional warning messages, prefix '[elapsed_time] Warning @ FILE:LINE FUNC: '.
| #define COND_PRINT | ( | C, | |
| ... ) |
Use for conditional plain messages, prefix '[elapsed_time] '.