GB_VARIANT

typedef struct { GB_TYPE type; union { char _boolean; unsigned char _byte; short _short; int _integer; int64_t _long; float _single; double _float; GB_DATE_VALUE _date; char *_string; intptr_t _pointer; void *_object; int64_t data; } value; } PACKED GB_VARIANT_VALUE;

typedef struct { GB_TYPE type; GB_VARIANT_VALUE value; #if __WORDSIZE == 64 int64_t _pad; #endif } PACKED GB_VARIANT;

This structure represents a Variant Gambas value.

See also