Files
onionHEN/source/include/print.hpp
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

25 lines
720 B
C++

#pragma once
void OrionHEN_log(const char *format, ...);
extern "C" {
#include <stdio.h>
size_t print_null(...);
}
#ifdef DEBUG
#define _puts(x) printf("%s:%d: %s\n", __PRETTY_FUNCTION__, __LINE__, x)
#define _printf(...) { \
printf("%s:%d ", __PRETTY_FUNCTION__, __LINE__); \
OrionHEN_log(__VA_ARGS__); \
}
#define print_ret(func) printf("%s:%d: " #func ": 0x%08x\n", __PRETTY_FUNCTION__, __LINE__, func)
#else
#define _puts(x) print_null("%s:%d: %s\n", __PRETTY_FUNCTION__, __LINE__, x)
#define _printf(...) { \
print_null("%s:%d ", __PRETTY_FUNCTION__, __LINE__); \
OrionHEN_log(__VA_ARGS__); \
}
#define print_ret(func) OrionHEN_log("%s:%d: " #func ": 0x%08x\n", __PRETTY_FUNCTION__, __LINE__, func)
#endif