4 ms·
Which is really no different than using GObject and GValue from GLib / Gnome world. (Even using a meta-object GOB compiler :))
by apaprocki 14y ago
Which is really no different than using GObject and GValue from GLib / Gnome world. (Even using a meta-object GOB compiler :))
- nitrogen 14y ago... or using a union with an enum in plain C: struct data { void *data; size_t length; }; union value { char *zstr; int intgr; float flt; struct data *data; }; enum type { STRING, INTEGER, FLOATING, DATA, };