Add a function to add primitives in the test library
This commit is contained in:
parent
1fe9d2cb02
commit
0f227ac6f8
1 changed files with 5 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue