ARB
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
arb_test::StaticCode Struct Reference

#include <test_unit.h>

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

Public Member Functions

static void VPRINTFORMAT (format)
 
 arb_assert (printed >=0 &&size_t(printed)< max_vstrf_size)
 
 memcpy (result, vstrf_buf, printed)
 
static char va_start (parg, format)
 
 va_end (parg)
 

Static Public Member Functions

static void printf (const char *format,...) __attribute__((format(printf
 
static charreadable_string (const char *s)
 
static void print_readable_string (const char *s, FILE *out)
 
static charvstrf (const char *format, va_list &parg) __attribute__((format(__printf__
 
static charstrf (const char *format,...) __attribute__((format(__printf__
 

Public Attributes

int printed = vsnprintf(vstrf_buf, max_vstrf_size, format, parg)
 
charresult = (char*)malloc(printed+1)
 
 result [printed] = 0
 
return result
 

Static Public Attributes

static char static char vstrf_buf [max_vstrf_size]
 

Detailed Description

Definition at line 180 of file test_unit.h.

Member Function Documentation

static void arb_test::StaticCode::printf ( const char format,
  ... 
)
static
static void arb_test::StaticCode::VPRINTFORMAT ( format  )
static char* arb_test::StaticCode::readable_string ( const char s)
inlinestatic

Definition at line 189 of file test_unit.h.

Referenced by print_readable_string(), and arb_test::val2readable().

static void arb_test::StaticCode::print_readable_string ( const char s,
FILE *  out 
)
inlinestatic

Definition at line 251 of file test_unit.h.

References fputs(), and readable_string().

static char* arb_test::StaticCode::vstrf ( const char format,
va_list &  parg 
)
static
arb_test::StaticCode::arb_assert ( )
arb_test::StaticCode::memcpy ( result  ,
vstrf_buf  ,
printed   
)
static char* arb_test::StaticCode::strf ( const char format,
  ... 
)
static
static char arb_test::StaticCode::va_start ( parg  ,
format   
)
arb_test::StaticCode::va_end ( parg  )

Member Data Documentation

char static char arb_test::StaticCode::vstrf_buf[max_vstrf_size]
static
Initial value:
{
static const size_t max_vstrf_size = 10000

Definition at line 255 of file test_unit.h.

int arb_test::StaticCode::printed = vsnprintf(vstrf_buf, max_vstrf_size, format, parg)

Definition at line 259 of file test_unit.h.

return arb_test::StaticCode::result = (char*)malloc(printed+1)

Definition at line 262 of file test_unit.h.

arb_test::StaticCode::result[printed] = 0

Definition at line 264 of file test_unit.h.

return arb_test::StaticCode::result

Definition at line 265 of file test_unit.h.


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