C compiler with embedded metalanguage.
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.
 
 
 

25 lines
255 B

struct foo {
int i, j, k;
char *p;
float v;
};
int
f1(struct foo f, struct foo *p, int n, ...)
{
if (f.i != p->i)
return 0;
return p->j + n;
}
int
main(void)
{
struct foo f;
f.i = f.j = 1;
f1(f, &f, 2);
f1(f, &f, 2, 1, f, &f);
return 0;
}