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.
 
 

70 lines
1.1 KiB

#ifndef FUNCTIONS_H
#define FUNCTIONS_H
#include "typedefs.h"
#include "structs.h"
#include "enums.h"
// ret: void
// arg: void
void nada();
// ret: void
// arg: primitive
void func1(int a);
// ret: primitive
// arg: primitive
int func2(int a);
// ret: aliased primitive
// arg: aliased primitive
C func3(B a);
// ret: primitive_struct
// arg: primitive
primitive_struct func4(int x);
// ret: primitive
// arg: primitive_struct
int func5(primitive_struct a);
// ret: primitive_struct
// arg: primitive_struct
primitive_struct func6(primitive_struct a);
// ret: complex_struct1
// arg: primitive
complex_struct1 func7(int a);
// ret: int
// arg: complex_struct1
int func8(complex_struct1 a);
// ret: struct _complex_struct2
// arg: int
struct _complex_struct2 func9(int a);
// ret: int
// arg: struct _complex_struct2
int func10(struct _complex_struct2 a);
// nested structs
// ret: int
// arg: host_struct
int func11(host_struct a);
// nested structs
// ret: int
// arg: host_struct
host_struct func12(int a);
//void ret , incomplete type arg
// ret: void
// arg: struct _incomplete_struct
void func99(struct _incomplete_struct a);
#endif //FUNCTIONS_H