int main(void) {
int a = 5;
float b = 3.14f;
double c = 2.718281828;
char d = 'x';
char *e = "Hello, world!";
bool f =
dbg((
bool)(a == 0));
char *g[] = { "This", "is", "a", "test", "!" };
CALL_DBG_ARRAY(dbg_array_string, (
const char **)g,
sizeof(g) /
sizeof(*g));
return 0;
}
Debug utilities for various data types and arrays.
#define CALL_DBG_ARRAY(dbg_func_name, value, length)
Macro to call a debug function for an array.
Definition debug.h:241
void set_breakpoint(void)
Function to set a breakpoint for debugging.
#define dbg(value)
Macro to print a debug message for a variable.
Definition debug.h:105
#define DBG_ARRAY_FUNC_DECL(type, name, fmt)
Macro to declare a debug function for an array.
Definition debug.h:321