Page 1 of 1

[Implemented] CompilerIf constants ...

Posted: Sat Jul 01, 2006 5:17 pm
by helpy
Hello dev team,

Would be nice to have a new CompilerIf Constant, so I can check if a program is compiled as console program:

Example:

Code: Select all

Macro ABORT( msg, ExitCode=0 )
	CompilerIf #PB_Compiler_Console = #True
		PrintN( "PROGRAM ABORTED" + #CRLF$ + msg j)
	CompilerElse
		MessageRequester("PROGRAM ABORTED", msg, #MB_ICONSTOP)
	CompilerEndIf
	End ExitCode
EndMacro
cu, helpy