Commit 4112265c authored by gsamain's avatar gsamain

Fix name mismatch for activate method injection during code generation

parent c3e67e03
...@@ -1092,7 +1092,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): ...@@ -1092,7 +1092,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
def generate_cyp_class_activate_function(self, entry, code): def generate_cyp_class_activate_function(self, entry, code):
active_self_entry = entry.type.scope.lookup_here("<active_self>") active_self_entry = entry.type.scope.lookup_here("<active_self>")
code.putln("%s::Activated* %s::activate() {" % (entry.type.empty_declaration_code(), entry.type.empty_declaration_code())) code.putln("%s::Activated* %s::__activate__() {" % (entry.type.empty_declaration_code(), entry.type.empty_declaration_code()))
code.putln("if (this->%s == NULL) {" % active_self_entry.cname) code.putln("if (this->%s == NULL) {" % active_self_entry.cname)
code.putln("this->%s = new %s::Activated(this);" % (active_self_entry.cname, entry.type.empty_declaration_code())) code.putln("this->%s = new %s::Activated(this);" % (active_self_entry.cname, entry.type.empty_declaration_code()))
code.putln("}") code.putln("}")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment