Polaris: p-assert.cc File Reference

p-assert.cc File Reference

Go to the source code of this file.

Functions

void set_abort_style (ABORT_STYLE as)
void _p_assert (int assertion, const char *file, int line, const char *str)
void _p_abort (const char *file, int line, const char *str)
void _p_warning (const char *file, int line, const char *str)

Variables

jmp_buf _jump_buf_env
 #include <setjmp.h>
static ABORT_STYLE _abort_style = ABORT_UNDEFINED


Function Documentation

void set_abort_style ABORT_STYLE  as  ) 
 

Definition at line 16 of file p-assert.cc.

References _abort_style.

void _p_assert int  assertion,
const char *  file,
int  line,
const char *  str
 

Definition at line 20 of file p-assert.cc.

References _p_abort(), and line.

void _p_abort const char *  file,
int  line,
const char *  str
 

... If it gets here, make it abort to save the core.

Definition at line 29 of file p-assert.cc.

References _abort_style, _jump_buf_env, ABORT_ABORT, ABORT_DUMP_TRACE, ABORT_EXIT, ABORT_LONGJMP, ABORT_THROW, line, and stack_dump().

Referenced by _p_assert().

void _p_warning const char *  file,
int  line,
const char *  str
 

Definition at line 63 of file p-assert.cc.

References line.


Variable Documentation

jmp_buf _jump_buf_env
 

#include <setjmp.h>

Definition at line 12 of file p-assert.cc.

Referenced by _p_abort().

ABORT_STYLE _abort_style = ABORT_UNDEFINED [static]
 

Definition at line 15 of file p-assert.cc.

Referenced by _p_abort(), and set_abort_style().

 © 1995-2005 University of Illinois, Urbana-Champaign. All rights reserved.  Fri Mar 25 23:06:24 2005