mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
allow undefined typedefs like classes
This commit is contained in:
parent
02d259fb03
commit
6d457d093c
@ -18,6 +18,8 @@
|
||||
|
||||
#include "dcbase.h"
|
||||
#include "dcFile.h"
|
||||
#include "dcClass.h"
|
||||
#include "dcTypedef.h"
|
||||
|
||||
#ifndef HAVE_GETOPT
|
||||
#include "gnu_getopt.h"
|
||||
@ -93,8 +95,16 @@ main(int argc, char *argv[]) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!file.all_classes_valid() && !dump_brief) {
|
||||
cerr << "File is incomplete. The following classes are undefined:\n";
|
||||
if (!file.all_objects_valid() && !dump_brief) {
|
||||
cerr << "File is incomplete. The following objects are undefined:\n";
|
||||
|
||||
int num_typedefs = file.get_num_typedefs();
|
||||
for (int i = 0; i < num_typedefs; i++) {
|
||||
DCTypedef *dtypedef = file.get_typedef(i);
|
||||
if (dtypedef->is_bogus_typedef()) {
|
||||
cerr << " " << dtypedef->get_name() << "\n";
|
||||
}
|
||||
}
|
||||
|
||||
int num_classes = file.get_num_classes();
|
||||
for (int i = 0; i < num_classes; i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user