blob: 42475906243835fa9ecfb9a6172312e1b6032fdc [file] [log] [blame]
#include <stdio.h>
// Use the assembly function in linux and mac where it is built.
#if PLATFORM_LINUX || PLATFORM_MAC
extern int asm_function(void);
#else
int asm_function() {
return 41;
}
#endif
int main(int argc, char *argv[])
{
fprintf(stdout, "Hello from program.c\n");
fflush(stdout);
fprintf(stdout, "Got %d.\n", asm_function());
fflush(stdout);
return 0;
}