v2: fix tests - gen output

pull/3940/head
Joe Conigliaro 2020-03-06 22:06:41 +11:00
parent 24dbfbcccf
commit 7f6b98669e
5 changed files with 5 additions and 5 deletions

View File

@ -41,7 +41,7 @@ pub fn (g mut Gen) init() {
g.definitions.writeln(c_headers)
g.write_sorted_types()
g.write_multi_return_types()
g.definitions.writeln('// end of definitions')
g.definitions.writeln('// end of definitions #endif')
}
pub fn (g mut Gen) write_multi_return_types() {

View File

@ -14,7 +14,7 @@ typedef struct {
int arg0;
string arg1;
} multi_return_int_string;
// end of definitions
// end of definitions #endif
void foo(int a);
void User_inc_age(User u, int n);
int get_int(string a);

View File

@ -3,7 +3,7 @@ struct User {
};
// multi return structs
// end of definitions
// end of definitions #endif
int function1();
void foo(int a);
void init_user();

View File

@ -4,7 +4,7 @@ struct User {
};
// multi return structs
// end of definitions
// end of definitions #endif
int main() {
User user = (User){
};

View File

@ -13,7 +13,7 @@ typedef struct {
string arg1;
} multi_return_int_string;
// end of definitions
// end of definitions #endif
multi_return_int_string mr_test();
int testa();
string testb(int a);