| 831 | } |
| 832 | |
| 833 | hx::Class *CppiaClassInfo::getSuperClass() |
| 834 | { |
| 835 | DBGLOG("getSuperClass %s %d\n", name.c_str(), superId); |
| 836 | if (!superId) |
| 837 | return 0; |
| 838 | |
| 839 | TypeData *superType = cppia.types[ superId ]; |
| 840 | if (!superType) |
| 841 | throw "Unknown super type!"; |
| 842 | if (superType->cppiaClass) |
| 843 | return &superType->cppiaClass->mClass; |
| 844 | if (!superType->haxeClass.mPtr) |
| 845 | { |
| 846 | printf("Invalid super class '%s' for '%s'.\n", superType->name.c_str(), name.c_str()); |
| 847 | throw "Missing super class"; |
| 848 | } |
| 849 | |
| 850 | return &superType->haxeClass; |
| 851 | } |
| 852 | |
| 853 | void CppiaClassInfo::addMemberFunction(Functions &ioCombined, CppiaFunction *inNewFunc) |
| 854 | { |