codex
Loading...
Searching...
No Matches
std5.c File Reference

Macros

#define debug(...)   fprintf(stderr, __VA_ARGS__)
 
#define showlist(...)   puts(#__VA_ARGS__)
 
#define report(test, ...)
 

Functions

 debug ("Flag")
 
 debug ("X = %d\n", x)
 
 showlist (The first, second, and third items.)
 
 report (x >y, "x is %d but y is %d", x, y)
 

Macro Definition Documentation

◆ debug

#define debug ( ...)    fprintf(stderr, __VA_ARGS__)

◆ report

#define report ( test,
... )
Value:
((test)?puts(#test):\
printf(__VA_ARGS__))
puts("The first, second, and third items.")
bool test(void)
Definition popcnt.cpp:174

◆ showlist

#define showlist ( ...)    puts(#__VA_ARGS__)

Function Documentation

◆ debug() [1/2]

debug ( "Flag" )

◆ debug() [2/2]

debug ( )

◆ report()

report ( x ,
y ,
"x is %d but y is %d" ,
x ,
y  )

◆ showlist()

showlist ( The first,
second ,
and third items. )