MIPI_BaseC_WebinarFRTK/12_Lecture12/12_if_endif_p41.c

18 lines
280 B
C
Raw Permalink Normal View History

2024-11-13 09:22:28 +03:00
#include <stdio.h>
#define DEBUG
#if defined DEBUG
#define DEBUGPRINT fprintf(stderr, "debug in %d line func: %s\n", __LINE__, __func__)
#else
#define DEBUGPRINT
#endif
int main(void)
{
int a = 5, b = 7;
DEBUGPRINT;
printf("a = %d b = %d\n", a, b);
return 0;
}