[Implemented] expand SizeOf() and add TypeOf()
Posted: Mon May 10, 2004 5:13 pm
* edit: see my post a little lower 
r = VarType ( <varname> )
r = VarType ( <varname\structfield> )
r = VarSize ( <varname> )
r = VarSize ( <varname\structfield> )
VarType() returns #PB_VarType_Byte for bytes, #PB_VarType_Word for words, etc. etc.
VarSize() returns how many bytes the variable or struct field takes up in memory, a string would be 4, a pointer 4, a static array b[100] would return 100
this would make intelligent struct manipulation possible, for example it would become possible to write a routine that copies a struct, as it can detect what type a struct field is, and take appropriate action

r = VarType ( <varname> )
r = VarType ( <varname\structfield> )
r = VarSize ( <varname> )
r = VarSize ( <varname\structfield> )
VarType() returns #PB_VarType_Byte for bytes, #PB_VarType_Word for words, etc. etc.
VarSize() returns how many bytes the variable or struct field takes up in memory, a string would be 4, a pointer 4, a static array b[100] would return 100
this would make intelligent struct manipulation possible, for example it would become possible to write a routine that copies a struct, as it can detect what type a struct field is, and take appropriate action