Struct MutinyMockValue

Struct Documentation

struct MutinyMockValue
[source]

Tagged union that carries a single mock parameter or return value.

Read the field matching type; all other fields are undefined.

Public Members

enum MutinyMockValueType type

Discriminator: which union member is valid.

int bool_value
int int_value
unsigned int unsigned_int_value
long int long_int_value
unsigned long int unsigned_long_int_value
long long long_long_int_value
unsigned long long unsigned_long_long_int_value
double double_value
const char *string_value
void *pointer_value
const void *const_pointer_value
void (*function_pointer_value)(void)
const unsigned char *memory_buffer_value
void *object_value
const void *const_object_value
union MutinyMockValue::[anonymous] value

The stored value; valid field determined by type.