Wiki Page Content

Differences between revisions 4 and 5
Revision 4 as of 2011-04-18 17:16:06
Size: 1844
Editor: SheenaSmith
Comment: update content (in progress)
Revision 5 as of 2011-04-18 17:26:45
Size: 1962
Editor: SheenaSmith
Comment: temp
Deletions are marked like this. Additions are marked like this.
Line 18: Line 18:
If not otherwise set, SDL_ASSERT_LEVEL will default to level 2 for debugging ^or compiling with GNUC or MSC_VER^ or level 1 otherwise. SDL_ASSERT_LEVEL may also be set to 0 or 3. SDL_ASSERT_LEVEL can be defined in your project. If not otherwise set, SDL_ASSERT_LEVEL will default to level 2 for debug builds or level 1 for release builds. SDL_ASSERT_LEVEL may also be set to 0 or 3.
Line 23: Line 23:
||<:>'''0'''||all assertions disabled||SDL_assert<<BR>>SDL_assert_release<<BR>>SDL_assert_paranoid||disabled<<BR>>disabled<<BR>>disabled||
||<:>'''1'''||for release (default)||SDL_assert<<BR>>SDL_assert_release<<BR>>SDL_assert_paranoid||disabled<<BR>>'''enabled'''<<BR>>disabled||
||<:>'''2'''||for debugging (default)||SDL_assert<<BR>>SDL_assert_release<<BR>>SDL_assert_paranoid||'''enabled'''<<BR>>'''enabled'''<<BR>>disabled||
||<:>'''0'''||all assertions disabled||SDL_assert<<BR>>SDL_assert_release<<BR>>SDL_assert_paranoid||<<Color2(gray,disabled)>><<BR>><<Color2(gray,disabled)>><<BR>><<Color2(gray,disabled)>>||
||<:>'''1'''||for release (default)||SDL_assert<<BR>>SDL_assert_release<<BR>>SDL_assert_paranoid||<<Color2(gray,disabled)>><<BR>>'''enabled'''<<BR>><<Color2(gray,disabled)>>||
||<:>'''2'''||for debugging (default)||SDL_assert<<BR>>SDL_assert_release<<BR>>SDL_assert_paranoid||enabled<<BR>>enabled<<BR>><<Color2(gray,disabled)>>||
Line 27: Line 27:

DRAFT

Assertions

Include File(s): SDL_assert.h

Introduction

This category contains functions for managing assertions.

SDL_ASSERT_LEVEL affects which assertions, if any, are processed during compiling based on which function was used to create the assertion (see functions below).

SDL_ASSERT_LEVEL can be defined in your project. If not otherwise set, SDL_ASSERT_LEVEL will default to level 2 for debug builds or level 1 for release builds. SDL_ASSERT_LEVEL may also be set to 0 or 3.

The following table describes each SDL_ASSERT_LEVEL setting and the corresponding impact on the three SDL_assert functions:

SDL_ASSERT_LEVEL

Description

Function

Function Status

0

all assertions disabled

SDL_assert
SDL_assert_release
SDL_assert_paranoid

gray


gray


gray

1

for release (default)

SDL_assert
SDL_assert_release
SDL_assert_paranoid

gray


enabled
gray

2

for debugging (default)

SDL_assert
SDL_assert_release
SDL_assert_paranoid

enabled
enabled
gray

3

stringent for detailed checking

SDL_assert
SDL_assert_release
SDL_assert_paranoid

enabled
enabled
enabled

Enumerations

Structures

Functions


CategoryCategory

None: CategoryAssertions (last edited 2019-03-25 00:03:03 by ColaEuphoria)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit