mirror of
				https://github.com/Ed94/gencpp.git
				synced 2025-11-03 15:26:12 -08:00 
			
		
		
		
	reduce 'large macro' usage in ast.cpp and interface.cpp
Properly disabled GEN_DEBUG_TRAP in non-debug builds
This commit is contained in:
		@@ -197,11 +197,11 @@ if ( $vendor -match "clang" )
 | 
			
		||||
			$compiler_args += $flag_no_optimization
 | 
			
		||||
		}
 | 
			
		||||
		if ( $debug ) {
 | 
			
		||||
			$compiler_args += ( $flag_define + 'Build_Debug=1' )
 | 
			
		||||
			$compiler_args += ( $flag_define + 'GEN_BUILD_DEBUG=1' )
 | 
			
		||||
			$compiler_args += $flag_debug, $flag_debug_codeview, $flag_profiling_debug
 | 
			
		||||
		}
 | 
			
		||||
		else {
 | 
			
		||||
			$compiler_args += ( $flag_define + 'Build_Debug=0' )
 | 
			
		||||
			$compiler_args += ( $flag_define + 'GEN_BUILD_DEBUG=0' )
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		$warning_ignores | ForEach-Object {
 | 
			
		||||
@@ -277,11 +277,11 @@ if ( $vendor -match "clang" )
 | 
			
		||||
			$compiler_args += $flag_no_optimization
 | 
			
		||||
		}
 | 
			
		||||
		if ( $debug ) {
 | 
			
		||||
			$compiler_args += ( $flag_define + 'Build_Debug=1' )
 | 
			
		||||
			$compiler_args += ( $flag_define + 'GEN_BUILD_DEBUG=1' )
 | 
			
		||||
			$compiler_args += $flag_debug, $flag_debug_codeview, $flag_profiling_debug
 | 
			
		||||
		}
 | 
			
		||||
		else {
 | 
			
		||||
			$compiler_args += ( $flag_define + 'Build_Debug=0' )
 | 
			
		||||
			$compiler_args += ( $flag_define + 'GEN_BUILD_DEBUG=0' )
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		$warning_ignores | ForEach-Object {
 | 
			
		||||
@@ -402,7 +402,7 @@ if ( $vendor -match "msvc" )
 | 
			
		||||
		if ( $debug )
 | 
			
		||||
		{
 | 
			
		||||
			$compiler_args += $flag_debug
 | 
			
		||||
			$compiler_args += ( $flag_define + 'Build_Debug=1' )
 | 
			
		||||
			$compiler_args += ( $flag_define + 'GEN_BUILD_DEBUG=1' )
 | 
			
		||||
			$compiler_args += ( $flag_path_debug + $path_output + '\' )
 | 
			
		||||
			$compiler_args += $flag_link_win_rt_static_debug
 | 
			
		||||
 | 
			
		||||
@@ -412,7 +412,7 @@ if ( $vendor -match "msvc" )
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		else {
 | 
			
		||||
			$compiler_args += ( $flag_define + 'Build_Debug=0' )
 | 
			
		||||
			$compiler_args += ( $flag_define + 'GEN_BUILD_DEBUG=0' )
 | 
			
		||||
			$compiler_args += $flag_link_win_rt_static
 | 
			
		||||
		}
 | 
			
		||||
		$compiler_args += $includes | ForEach-Object { $flag_include + $_ }
 | 
			
		||||
@@ -489,7 +489,7 @@ if ( $vendor -match "msvc" )
 | 
			
		||||
		if ( $debug )
 | 
			
		||||
		{
 | 
			
		||||
			$compiler_args += $flag_debug
 | 
			
		||||
			$compiler_args += ( $flag_define + 'Build_Debug=1' )
 | 
			
		||||
			$compiler_args += ( $flag_define + 'GEN_BUILD_DEBUG=1' )
 | 
			
		||||
			$compiler_args += ( $flag_path_debug + $path_output + '\' )
 | 
			
		||||
			$compiler_args += $flag_link_win_rt_static_debug
 | 
			
		||||
 | 
			
		||||
@@ -498,7 +498,7 @@ if ( $vendor -match "msvc" )
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		else {
 | 
			
		||||
			$compiler_args += ( $flag_define + 'Build_Debug=0' )
 | 
			
		||||
			$compiler_args += ( $flag_define + 'GEN_BUILD_DEBUG=0' )
 | 
			
		||||
			$compiler_args += $flag_link_win_rt_static
 | 
			
		||||
		}
 | 
			
		||||
		$compiler_args += $includes | ForEach-Object { $flag_include + $_ }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user