The Meson Build System http://mesonbuild.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
405 B

#include<adder.h>
#include<stdlib.h>
struct _Adder {
int number;
};
adder* adder_create(int number) {
adder *a = malloc(sizeof(struct _Adder));
a->number = number;
return a;
}
// adder_add_r is implemented in the Rust file.
int adder_add_r(adder *a, int number);
int adder_add(adder *a, int number)
{
return adder_add_r(a, number);
}
void adder_destroy(adder *a) {
free(a);
}