v2: fix tests - gen output
							parent
							
								
									24dbfbcccf
								
							
						
					
					
						commit
						7f6b98669e
					
				|  | @ -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() { | ||||
|  |  | |||
|  | @ -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); | ||||
|  |  | |||
|  | @ -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(); | ||||
|  |  | |||
|  | @ -4,7 +4,7 @@ struct User { | |||
| }; | ||||
| 
 | ||||
| // multi return structs
 | ||||
| // end of definitions
 | ||||
| // end of definitions #endif
 | ||||
| int main() { | ||||
| 	User user = (User){ | ||||
| }; | ||||
|  |  | |||
|  | @ -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); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue