if I have a bbGCNode* is it possible to find out if it is for a class and then if so get the decl info so I can call a method ?
this possibly confused code is how far I have got…
name=Unknown@6391376 where as p->typeName is as expected…. ???
|
|
bbTypeInfo* typ=bbGetType(p); if (typ!=0) { printf("name=%s\n",typ->name.c_str()); if (strncmp(p->typeName(),"t_", 2)==0) { // TODO must be a better way!? bbDeclInfo* dcl=typ->getDecl(bbString(L"myMethod",8)); if (dcl!=0) { printf("found myMethod\n"); } else { printf("couldn't find myMethod\n"); } } } else { printf("couldn't get type\n"); } |