Last active
January 29, 2021 09:02
-
-
Save FelixSchwarz/ee2ca0bc1172d5c448f4bfffec6a470a to your computer and use it in GitHub Desktop.
meson dummy with two source files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int increment(int x) { | |
return x+1; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include "foo.c" | |
int main() { | |
int bar = increment(42); | |
printf("Hello: %d\n", bar); | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
project('hello-world', 'c') | |
executable('hello', sources: ['main.c']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment