Files
onionHEN/source/util/include/log.h
T
Hexwell d28f4e3eb1 chore: rebrand runtime paths and identifiers to OrionHEN
Rename remaining etaHEN symbols, log prefixes, on-disk paths, plugin
magic, process names, and copyright headers across bootstrapper, daemons,
shellui, and util without keeping legacy aliases.
2026-07-10 13:06:58 +08:00

13 lines
527 B
C

#pragma once
#include "common_utils.h"
// NOLINTBEGIN(*)
#define __MACRO_STRINGIFY__(x) #x
#define __FILE_LINE_STRING__(x, y) x":"__MACRO_STRINGIFY__(y)
#define LOG_PERROR(msg) OrionHEN_log("[OrionHEN UTIL] " __FILE_LINE_STRING__(__FILE_NAME__, __LINE__) ": " msg)
#define LOG_PRINTLN(msg) OrionHEN_log("[OrionHEN UTIL] " __FILE_LINE_STRING__(__FILE_NAME__, __LINE__) ": " msg)
#define LOG_PRINTF(msg, ...) OrionHEN_log("[OrionHEN UTIL] " __FILE_LINE_STRING__(__FILE_NAME__, __LINE__) ": " msg, __VA_ARGS__)
// NOLINTEND(*)