107a108,110
> # Did any of the SimObjects lack a header file?
> noCxxHeader = False
>
121a125
> 'cxx_header' : str,
205a210,215
> if 'cxx_header' not in cls._value_dict:
> global noCxxHeader
> noCxxHeader = True
> print >> sys.stderr, \
> "warning: No header file specified for SimObject: %s" % name
>
409a420
> code('#include "${{cls.cxx_header}}"')
570a582
> cxx_header = "sim/sim_object.hh"
573,581d584
< def export_method_cxx_predecls(cls, code):
< code('''
< #include <Python.h>
<
< #include "sim/serialize.hh"
< #include "sim/sim_object.hh"
< ''')
<
< @classmethod
1102c1105
< global allClasses, instanceDict
---
> global allClasses, instanceDict, noCxxHeader
1105a1109
> noCxxHeader = False