923
931
Printv(f_shadow, " constructor { } {\n", NIL);
924
932
Printv(f_shadow, " # This constructor will fail if called directly\n", NIL);
925
933
Printv(f_shadow, " if { [info class] == \"::", class_name, "\" } {\n", NIL);
926
Printv(f_shadow, " error \"No constructor for class ", class_name, "\"\n", NIL);
934
Printv(f_shadow, " error \"No constructor for class ", class_name, (Getattr(n, "abstract") ? " - class is abstract" : ""), "\"\n", NIL);
927
935
Printv(f_shadow, " }\n", NIL);
928
936
Printv(f_shadow, " }\n", NIL);
931
939
Printv(f_shadow, "}\n\n", NIL);
934
942
Printv(f_wrappers, "static swig_class *swig_", mangled_classname, "_bases[] = {", base_class, "0};\n", NIL);
935
943
Printv(f_wrappers, "static const char * swig_", mangled_classname, "_base_names[] = {", base_class_names, "0};\n", NIL);