mirror of
https://github.com/aydencharles/onionHEN.git
synced 2026-10-23 12:23:01 -05:00
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.
25 lines
720 B
C++
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
|