Print

Summary

Prints some text during BFF parsing.

Print( "String or $VarName$" )
Details

The Print() function allows output to be emitted during the parsing of BFF files, in order to assist in configuring/debugging them. It allows targeted debugging, where the -verbose command line option is overwhelming.

NOTE: Output will only be generated during BFF parsing (i.e. after the BFF is modified).

Examples

The following sample BFF:

.X86_Debug = [ .Config = 'Debug' .Platform = 'X86' ] .X86_Release = [ .Config = 'Release' .Platform = 'X86' ] .X64_Debug = [ .Config = 'Debug' .Platform = 'X64' ] .X64_Release = [ .Config = 'Release' .Platform = 'X64' ] .Configs = { .X86_Debug, .X86_Release, .X64_Debug, .X64_Release } ForEach( .Config in .Configs ) { Using( .Config ) .TargetName = '$Platform$-$Config$' Print( 'TargetName = $TargetName$' ) }

Will generate the following output:

TargetName = X86-Debug TargetName = X86-Release TargetName = X64-Debug TargetName = X64-Release