Defines log functions and macros. More...
#include <inttypes.h>
#include "attribute.h"
Macros | |
#define | mck_slog2(msg) mck_slog(mc_cstr(msg)) |
Sames as mck_slog but it does a const_cast<char *> for you so you can use directly it in c++. | |
#define | mck_cond_slog2(cond, msg) mck_cond_slog(cond, mc_cstr(msg)) |
Sames as mck_cond_slog but it does a const_cast<char *> for you so you can use directly it in c++. | |
#define | mck_sprt2(msg) mck_sprt(mc_cstr(msg)) |
Sames as mck_sprt but it does a const_cast<char *> for you so you can use directly it in c++. | |
Functions | |
mc_inline_fn void | mck_lock_log () |
Locks this workeru log file. | |
mc_inline_fn void | mck_unlock_log () |
Unocks this workeru log file. | |
mc_inline_fn void | mck_slog (char *msg) |
Logs a string in this workeru log file. | |
mc_inline_fn void | mck_cond_slog (bool cond, char *msg) |
Conditionally logs a string in this workeru log file. | |
mc_inline_fn void | mck_sprt (char *msg) |
Prints a string to stdout in the manageru. | |
mc_inline_fn void | mc_out_abort_ptd () |
Aborts PTD. | |
mc_inline_fn void | mck_ilog (int32_t vv) |
Logs an int32_t in this workeru log file. | |
mc_inline_fn void | mck_ulog (uint32_t vv) |
Logs an uint32_t in this workeru log file. | |
mc_inline_fn void | mck_xlog (uint32_t vv) |
Logs an uint32_t as a hexadecimal in this workeru log file. | |
mc_inline_fn void | mck_iprt (int32_t vv) |
Prints an int32_t to stdout in the manageru. | |
mc_inline_fn void | mck_uprt (uint32_t vv) |
Prints an uint32_t to stdout in the manageru. | |
mc_inline_fn void | mck_xprt (uint32_t vv) |
Prints an uint32_t as a hexadecimal to stdout in the manageru. | |
Defines log functions and macros.