Revision history for KeyPgAssert


Revision [21996]

Last edited on 2017-11-21 01:10:50 by JeffMarshall [fix page link name case]
Additions:
- ##[[KeyPgPpassert|#assert]]##
Deletions:
- ##[[KeyPgPpAssert|#assert]]##


Revision [20824]

Edited on 2016-03-12 15:03:35 by fxm [Formatting]

No Differences

Revision [20054]

Edited on 2016-02-10 15:54:41 by DkLwikki [Update link format]
Additions:
[[KeyPgPpdefine|#define]] **ASSERT**(//expression//) [[KeyPgIfthen|if]] (expression) = 0 [[KeyPgThen|then]] : fb_Assert( [[KeyPgDdfile|__FILE__]], [[KeyPgDdline|__LINE__]], [[KeyPgDdfunction|__FUNCTION__]], [[KeyPgOpPpStringize|#]]expression ) : [[KeyPgEndif|end if]]
Note: If an ##**ASSERT**## fails while the program is in a graphics ##[[KeyPgScreengraphics|Screen]]##, the error message will not be visible as it will be printed to the graphics screen, which will be closed immediately after.
- Not available in the //[[CompilerOptlang|-lang qb]]// dialect unless referenced with the alias ##**""__ASSERT""**##.
- ##[[KeyPgPpAssert|#assert]]##
- ##[[KeyPgAssertwarn|ASSERTWARN]]##
Deletions:
[[KeyPgPpdefine #define]] **ASSERT**(//expression//) [[KeyPgIfthen if]] (expression) = 0 [[KeyPgThen then]] : fb_Assert( [[KeyPgDdfile __FILE__]], [[KeyPgDdline __LINE__]], [[KeyPgDdfunction __FUNCTION__]], [[KeyPgOpPpStringize #]]expression ) : [[KeyPgEndif end if]]
Note: If an ##**ASSERT**## fails while the program is in a graphics ##[[KeyPgScreengraphics Screen]]##, the error message will not be visible as it will be printed to the graphics screen, which will be closed immediately after.
- Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__ASSERT""**##.
- ##[[KeyPgPpAssert #assert]]##
- ##[[KeyPgAssertwarn ASSERTWARN]]##


Revision [16595]

Edited on 2013-02-23 19:41:57 by CountingPine [Link to #assert]
Additions:
- ##[[KeyPgPpAssert #assert]]##


Revision [13878]

Edited on 2008-11-18 18:03:38 by CountingPine [Minor changes]
Additions:
Debugging macro that halts program execution if an expression is evaluated to ##0## (false).
Any valid conditional/numeric expression. If ##//expression//## evaluates to ##0## (i.e. "false"), execution is halted.
The ##**ASSERT**## macro is intended for use in debugging and works only if the ##-g## option is selected in the FBC command line. In this case it prints an error message and stops the program execution if ##//expression//## evaluates to ##0##.
If ##-g## is not passed to fbc, the macro does not generate any code, and has no effect.
Note: If an ##**ASSERT**## fails while the program is in a graphics ##[[KeyPgScreengraphics Screen]]##, the error message will not be visible as it will be printed to the graphics screen, which will be closed immediately after.
- New to ""FreeBASIC""
Deletions:
Debugging macro that halts program execution if an expression is evaluated to 0.
Any valid expression. If ##//expression//## evaluates to 0, execution is halted.
The ##**ASSERT**## macro is intended for use in debugging and works only if the ##-g## option is selected in the FBC command line. In this case it stops the program execution if ##//expression//## evaluates to 0.
If ##-g## is not passed to fbc, the macro does not generate any code.
If the program uses the graphics library ,**ASSERT**'s error message will not be visible as it will be printed to the graphics screen and it will be closed inmediately after.
- New to FreeBASIC


Revision [13877]

Edited on 2008-11-14 12:53:58 by AntoniGual [ASSERT's output is not visible if using gfx]
Additions:
If the program uses the graphics library ,**ASSERT**'s error message will not be visible as it will be printed to the graphics screen and it will be closed inmediately after.


Revision [13154]

The oldest known version of this page was created on 2008-04-24 15:43:06 by JeffMarshall [ASSERT's output is not visible if using gfx]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode