I want to conditionally use either printf() or a statement:
#define USE_PRINTF
#ifdef USE_PRINTF
#define macrofn(str) printf(str)
#else
#define macrofn(str) some_statement
#ifndef USE_PRINTF
But I'm getting the following error:
incompatible implicit declaration of built-in function 'printf'
What am I doing wrong? Thanks