diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-09-05 08:29:31 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-09-05 08:29:31 +0200 |
| commit | 5a5502e5275f7a3f1eaa95bde26257e732cacaf9 (patch) | |
| tree | 760eecb3bd54c4aee0ae71514b229fa9febcaa26 /src/blog/2023-11-14-test-visibility-c-macro/foo4.c | |
| parent | 255738c334b055209b710b948368ba66cc1dcb52 (diff) | |
| download | sebastiano.tronto.net-5a5502e5275f7a3f1eaa95bde26257e732cacaf9.tar.gz sebastiano.tronto.net-5a5502e5275f7a3f1eaa95bde26257e732cacaf9.zip | |
Fixed blog post
Diffstat (limited to 'src/blog/2023-11-14-test-visibility-c-macro/foo4.c')
| -rw-r--r-- | src/blog/2023-11-14-test-visibility-c-macro/foo4.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/blog/2023-11-14-test-visibility-c-macro/foo4.c b/src/blog/2023-11-14-test-visibility-c-macro/foo4.c index 85dea34..66a0c82 100644 --- a/src/blog/2023-11-14-test-visibility-c-macro/foo4.c +++ b/src/blog/2023-11-14-test-visibility-c-macro/foo4.c | |||
| @@ -4,12 +4,12 @@ | |||
| 4 | /* cc main4.c # foo is static */ | 4 | /* cc main4.c # foo is static */ |
| 5 | 5 | ||
| 6 | #ifdef TEST | 6 | #ifdef TEST |
| 7 | #define _static | 7 | #define STATIC |
| 8 | #else | 8 | #else |
| 9 | #define _static static | 9 | #define STATIC static |
| 10 | #endif | 10 | #endif |
| 11 | 11 | ||
| 12 | _static int foo(int x, int y) | 12 | STATIC int foo(int x, int y) |
| 13 | { | 13 | { |
| 14 | return 42*x - 69*y; | 14 | return 42*x - 69*y; |
| 15 | } | 15 | } |
