Add a function to add primitives in the test library

This commit is contained in:
Joshua Suskalo 2021-09-23 08:29:52 -05:00
parent 1fe9d2cb02
commit 0f227ac6f8

View file

@ -1,5 +1,9 @@
#include <stdio.h>
int add_numbers(int a, int b) {
return a + b;
}
typedef struct point {
float x;
float y;
@ -18,7 +22,7 @@ typedef char *CString;
typedef CString (*StringFactory)(void);
void upcall_test(StringFactory fun) {
CString upcall_test(StringFactory fun) {
return fun();
}