1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include <stdio.h> /* cc -DTEST main4.c # foo is visible */ /* cc main4.c # foo is static */ #ifdef TEST #define STATIC #else #define STATIC static #endif STATIC int foo(int x, int y) { return 42*x - 69*y; }
Generated with cgit - Back to sebastiano.tronto.net