PICODEINFO::accessOffsetFunction
add offset generation in pip_cmg for retrieve bytes offset of struct member add pip_cmg -V doc
This commit is contained in:
@@ -55,11 +55,12 @@ PIVariant PICodeInfo::getMemberAsVariant(const void * p, const char * class_name
|
||||
|
||||
|
||||
PICodeInfo::__Storage__::__Storage__() {
|
||||
classesInfo = new PIMap<PIConstChars, ClassInfo *>;
|
||||
enumsInfo = new PIMap<PIConstChars, EnumInfo *>;
|
||||
accessValueFunctions = new PIMap<PIConstChars, AccessValueFunction>;
|
||||
accessTypeFunctions = new PIMap<PIConstChars, AccessTypeFunction>;
|
||||
(*enumsInfo)[""] = new EnumInfo();
|
||||
classesInfo = new PIMap<PIConstChars, ClassInfo *>;
|
||||
enumsInfo = new PIMap<PIConstChars, EnumInfo *>;
|
||||
accessValueFunctions = new PIMap<PIConstChars, AccessValueFunction>;
|
||||
accessTypeFunctions = new PIMap<PIConstChars, AccessTypeFunction>;
|
||||
accessOffsetFunctions = new PIMap<PIConstChars, AccessOffsetFunction>;
|
||||
(*enumsInfo)[""] = new EnumInfo();
|
||||
}
|
||||
|
||||
|
||||
@@ -70,6 +71,7 @@ PICodeInfo::__Storage__::~__Storage__() {
|
||||
piDeleteSafety(enumsInfo);
|
||||
piDeleteSafety(accessValueFunctions);
|
||||
piDeleteSafety(accessTypeFunctions);
|
||||
piDeleteSafety(accessOffsetFunctions);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user