Fix compile-error for singleheader found with scanner's scan_file.

This commit is contained in:
Edward R. Gonzalez 2023-09-08 15:14:43 -04:00
parent 6ea40094ee
commit 35ac0c1048

View File

@ -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 )
{ {