mirror of
https://github.com/Ed94/gencpp.git
synced 2025-06-15 03:01:47 -07:00
Introduced the general context struct for gencpp
This commit is contained in:
@ -32,7 +32,10 @@ Code format( Code code ) {
|
||||
|
||||
int gen_main()
|
||||
{
|
||||
gen::init();
|
||||
Context ctx {
|
||||
|
||||
};
|
||||
gen::init(& ctx);
|
||||
|
||||
Code push_ignores = scan_file( (path_base "helpers/push_ignores.inline.hpp") );
|
||||
Code pop_ignores = scan_file( (path_base "helpers/pop_ignores.inline.hpp") );
|
||||
@ -282,6 +285,6 @@ int gen_main()
|
||||
builder_write( & src);
|
||||
}
|
||||
|
||||
gen::deinit();
|
||||
gen::deinit( & ctx);
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user