4-variable-simplifier/debug.h
2026-04-25 16:00:10 -04:00

46 lines
781 B
C

#ifdef DEBUG_BUILD_TYPE
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <getopt.h>
#include <assert.h>
#include <stdbool.h>
#include <inttypes.h>
#include <limits.h>
#include <string.h>
struct string;
struct scope;
struct expression;
struct cmdln_flags;
struct avl_tree_t;
struct truthtable_set;
extern int debug_depth;
#include <typedefs/truthtable_t.h>
#include <memory/smalloc.h>
#include <string/inc.h>
#define ENTER \
printf("%*s" "%s():" "\n", debug_depth++, "", __PRETTY_FUNCTION__);
#define TODO \
assert(!"TODO");
#define CHECK \
assert(!"CHECK");
#define EXIT \
printf("%*s" "return; // from %s" "\n", debug_depth--, "", __PRETTY_FUNCTION__);
#endif
#ifdef RELEASE_BUILD_TYPE
#define ENTER ;
#define TODO ;
#endif