pike.git/
src/
svalue.h
Branch:
Tag:
Non-build tags
All tags
No tags
2011-09-24
2011-09-24 10:59:17 by Henrik Grubbström (Grubba) <grubba@grubba.org>
8b6207015bf598079697d37cae26e5437d4c76f6 (
6
lines) (+
6
/-
0
)
[
Show
|
Annotate
]
Branch:
7.9
Added accessor macros for svalue type and subtype.
100:
union anything u; /**< contains the value */ };
+
#define TYPEOF(SVAL) ((SVAL).type)
+
#define SUBTYPEOF(SVAL) ((SVAL).subtype)
+
#define SET_SVAL_TYPE(SVAL, TYPE) (TYPEOF(SVAL) = (TYPE))
+
#define SET_SVAL_SUBTYPE(SVAL, TYPE) (SUBTYPEOF(SVAL) = (TYPE))
+
#define PIKE_T_ARRAY 0 #define PIKE_T_MAPPING 1 #define PIKE_T_MULTISET 2