ARB
Public Member Functions | Public Attributes | List of all members
arb_test::locinfo Class Reference

#include <test_unit.h>

Collaboration diagram for arb_test::locinfo:
Collaboration graph
[legend]

Public Member Functions

 locinfo ()
 
 locinfo (const char *file_, int line_)
 
bool exists () const
 
const charget_file () const
 
int get_line () const
 
 __attribute__ ((format(printf, 2, 3))) bool warningf(const char *format
 
 if (global.show_warnings)
 
 __attribute__ ((format(printf, 3, 4))) void errorf(bool fail
 
 __attribute__ ((format(printf, 3, 4))) void ioerrorf(bool fail
 

Public Attributes

 const
 
return global show_warnings
 
const char const
 

Detailed Description

Definition at line 128 of file test_unit.h.

Constructor & Destructor Documentation

arb_test::locinfo::locinfo ( )
inline

Definition at line 139 of file test_unit.h.

arb_test::locinfo::locinfo ( const char file_,
int  line_ 
)
inline

Definition at line 140 of file test_unit.h.

Member Function Documentation

bool arb_test::locinfo::exists ( ) const
inline

Definition at line 142 of file test_unit.h.

const char* arb_test::locinfo::get_file ( ) const
inline

Definition at line 144 of file test_unit.h.

int arb_test::locinfo::get_line ( ) const
inline

Definition at line 145 of file test_unit.h.

arb_test::locinfo::__attribute__ ( (format(printf, 2, 3))  ) const
arb_test::locinfo::if ( global.  show_warnings)
inline

Definition at line 149 of file test_unit.h.

References VCOMPILERMSG.

arb_test::locinfo::__attribute__ ( (format(printf, 3, 4))  )
arb_test::locinfo::__attribute__ ( (format(printf, 3, 4))  )

Member Data Documentation

arb_test::locinfo::const
Initial value:
{
GlobalTestData& global = test_data()

Definition at line 147 of file test_unit.h.

return global arb_test::locinfo::show_warnings

Definition at line 155 of file test_unit.h.

const char arb_test::locinfo::const
Initial value:
{
{
FlushedOutput yes;
VCOMPILERMSG("Error", format);
GlobalTestData::print_annotation();
}
if (fail) TRIGGER_ASSERTION(false)

Definition at line 158 of file test_unit.h.


The documentation for this class was generated from the following file: