Skip to content

Instantly share code, notes, and snippets.

@FelixSchwarz
Last active January 29, 2021 09:02
Show Gist options
  • Save FelixSchwarz/ee2ca0bc1172d5c448f4bfffec6a470a to your computer and use it in GitHub Desktop.
Save FelixSchwarz/ee2ca0bc1172d5c448f4bfffec6a470a to your computer and use it in GitHub Desktop.
meson dummy with two source files
int increment(int x) {
return x+1;
}
#include <stdio.h>
#include "foo.c"
int main() {
int bar = increment(42);
printf("Hello: %d\n", bar);
return 0;
}
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