mirror of
https://github.com/Ed94/gencpp.git
synced 2024-12-22 15:54:45 -08:00
Fix compile-error for singleheader found with scanner's scan_file.
This commit is contained in:
parent
6ea40094ee
commit
35ac0c1048
@ -152,13 +152,6 @@ int gen_main()
|
|||||||
header.print_fmt( "#pragma endregion Builder\n" );
|
header.print_fmt( "#pragma endregion Builder\n" );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( generate_scanner )
|
|
||||||
{
|
|
||||||
header.print_fmt( "\n#pragma region Scanner\n" );
|
|
||||||
header.print( scan_file( project_dir "auxillary/scanner.hpp" ) );
|
|
||||||
header.print_fmt( "#pragma endregion Scanner\n\n" );
|
|
||||||
}
|
|
||||||
|
|
||||||
header.print_fmt( "GEN_NS_END\n" );
|
header.print_fmt( "GEN_NS_END\n" );
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -238,6 +231,14 @@ int gen_main()
|
|||||||
header.print_fmt( "\n#pragma endregion Builder\n\n" );
|
header.print_fmt( "\n#pragma endregion Builder\n\n" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Scanner header depends on implementation
|
||||||
|
if ( generate_scanner )
|
||||||
|
{
|
||||||
|
header.print_fmt( "\n#pragma region Scanner\n" );
|
||||||
|
header.print( scan_file( project_dir "auxillary/scanner.hpp" ) );
|
||||||
|
header.print_fmt( "#pragma endregion Scanner\n\n" );
|
||||||
|
}
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
if ( generate_scanner )
|
if ( generate_scanner )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user