is_py_class_scope = 0
is_c_class_scope = 0
+ is_closure_scope = 0
+ is_cpp_class_scope = 0
is_module_scope = 0
+ is_internal = 0
scope_prefix = ""
in_cinclude = 0
nogil = 0
if type.is_cpp_class and visibility != 'extern':
constructor = type.scope.lookup(u'<init>')
if constructor is not None and PyrexTypes.best_match([], constructor.all_alternatives()) is None:
- error(pos, "C++ class must have an empty constructor to be stack allocated")
+ error(pos, "C++ class must have a default constructor to be stack allocated")
entry = self.declare(name, cname, type, pos, visibility)
entry.is_variable = 1
- self.control_flow.set_state((), (name, 'initalized'), False)
+ self.control_flow.set_state((), (name, 'initialized'), False)
return entry
def declare_builtin(self, name, pos):