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

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 void arb_test::StaticCode::VPRINTFORMAT ( format  )
static char* arb_test::StaticCode::readable_string ( const char s)

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 

Definition at line 240 of file test_unit.h.

References fputs(), and readable_string().

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

Member Data Documentation

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

Definition at line 244 of file test_unit.h.

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

Definition at line 248 of file test_unit.h.

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

Definition at line 251 of file test_unit.h.

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

Definition at line 253 of file test_unit.h.

return arb_test::StaticCode::result

Definition at line 254 of file test_unit.h.

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