s502 assembler
A very simple assembler for the 6502 line of processors written in C
src
logging.h
Go to the documentation of this file.
1
#ifndef GUARD_LOGGING
2
#define GUARD_LOGGING
3
4
#include <stdio.h>
5
18
int
logging_level
(
int
setlevel);
19
28
#define LOG(LVL, ...) if (logging_level(0)>=(LVL)) {printf("\e[33mLOG:\e[39m\t"); printf(__VA_ARGS__);}
29
35
#define LOGDO(LVL, x) if(logging_level(0) >= (LVL)) {x;};
36
40
#define ERROR(...) {printf("\e[41mERROR\e[49m:\t"); printf(__VA_ARGS__);}
41
45
#define FAIL(...) {printf("\e[31mFAIL:\e[39m\t"); printf(__VA_ARGS__);}
46
47
#endif
logging_level
int logging_level(int setlevel)
pseudo-global accessor
Definition:
logging.c:6
Generated by
1.8.20