1 #define _ASSERTION(expr, message) { if (!(expr)) __builtin_abort (); } (void)0
3 typedef unsigned int EnumStatusCode
;
8 static const EnumStatusCode ERROR
= 0x8000;
9 static const EnumStatusCode SUCCESS
= 0x0000;
10 static bool isSUCCEEDED (EnumStatusCode res
) { return (res
== SUCCESS
); }
13 class LocalizedTextStruct
16 LocalizedTextStruct () {}
17 LocalizedTextStruct (const char *val
)
19 __builtin_strcpy (t
, val
);
21 char *getT () { return t
; }
26 typedef union tagValueUnion
28 LocalizedTextStruct
* LocalizedText
;
31 typedef struct ValueStruct
33 unsigned char arrayType
;
34 unsigned short dataType
;
35 ValueStructUnion value
;
41 virtual LocalizedTextStruct
* getInternHandle ();
43 LocalizedTextStruct t
;
49 static EnumStatusCode
getLocalizedText (const ValueStruct
* pValueStruct
, LocalizedText
& target
);
50 static LocalizedText
getLocalizedText (const ValueStruct
* pValueStruct
);
53 EnumStatusCode
LocalizedTextSet (LocalizedTextStruct
* pTarget
, LocalizedTextStruct
* pSource
);