Asserter.cpp File Reference
Asserter class method implementations. More...
#include "Asserter.h"
#include <bamboo/Daemonizer.h>
#include <cstdlib>
#include <iostream>
|
Functions |
| AsserterAction | AskUser (const char *file, int line, const char *msg) |
| | A function to ask the user what to do when an assertion fires.
|
Detailed Description
Asserter class method implementations.
This Code was originally written by Andrei Alexandrescu in his C/C++ Users Journal article "Assertions", April 2003. I have modified it slightly to work with g++ 4.0 and Fountain concepts
- Header
- /afs/scl/project/cvsroot/fountain/source/common/Asserter.cpp,v 1.2 2006/02/10 19:53:28 samm Exp
Function Documentation
| AsserterAction AskUser |
( |
const char * |
file, |
|
|
int |
line, |
|
|
const char * |
msg = NULL |
|
) |
|
|
|
|
A function to ask the user what to do when an assertion fires.
- Parameters:
-
| [in] | file | The file name where the assertion fired |
| [in] | line | The line number where the assertion fired |
| [in] | msg | The optional message given by the assertion |
- Return values:
-
| AsserterAction | the action chosen by the user |
|
Generated on Wed Mar 8 14:43:31 2006 for Fountain by
1.4.6