mirror of
https://github.com/djhackersdev/saltytools.git
synced 2026-03-22 02:04:14 -05:00
11 lines
332 B
C
11 lines
332 B
C
#pragma once
|
|
|
|
#include "util/macro.h"
|
|
|
|
#define log_write(...) log_write_(__func__, __VA_ARGS__)
|
|
#define log_error(r) log_error_(__func__, __FILE__, __LINE__, r);
|
|
|
|
void log_write_(const char *func, const char *fmt, ...)
|
|
gcc_attribute((format(printf, 2, 3)));
|
|
void log_error_(const char *func, const char *file, int line, int r);
|