()
| 628 | # Loads class hierarchy and type information from "objects.h" etc. |
| 629 | # |
| 630 | def load_objects(): |
| 631 | # |
| 632 | # Construct a dictionary for the classes we're sure should be present. |
| 633 | # |
| 634 | checktypes = {}; |
| 635 | for klass in expected_classes: |
| 636 | checktypes[klass] = True; |
| 637 | |
| 638 | |
| 639 | for filename in sys.argv[2:]: |
| 640 | if not filename.endswith("-inl.h"): |
| 641 | load_objects_from_file(filename, checktypes) |
| 642 | |
| 643 | if (len(checktypes) > 0): |
| 644 | for klass in checktypes: |
| 645 | print('error: expected class \"%s\" not found' % klass); |
| 646 | |
| 647 | sys.exit(1); |
| 648 | |
| 649 | |
| 650 | def load_objects_from_file(objfilename, checktypes): |
no test coverage detected