From: Benedikt Tutzer Date: Wed, 9 Oct 2019 12:21:52 +0000 (+0200) Subject: Fix renaming all classes to Cpp* X-Git-Tag: working-ls180~964^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=79be986e2248540854c3e8e1e21f5bf971079690;p=yosys.git Fix renaming all classes to Cpp* (This is only relevant for classes that are exposed twice, one time as a base class and one time as a derived class that can in turn be overridden in python, but actually all others were renamed) --- diff --git a/misc/py_wrap_generator.py b/misc/py_wrap_generator.py index d8649e9ce..c58c3f66a 100644 --- a/misc/py_wrap_generator.py +++ b/misc/py_wrap_generator.py @@ -909,14 +909,14 @@ class WClass: def gen_boost_py(self): body = self.gen_boost_py_body() if self.link_type == link_types.derive: - text = "\n\t\tclass_<" + self.name + ">(\"" + self.name + "\"" + text = "\n\t\tclass_<" + self.name + ">(\"Cpp" + self.name + "\"" text += body text += "\n\t\tclass_<" + self.name text += "Wrap, boost::noncopyable" text += ">(\"" + self.name + "\"" text += body else: - text = "\n\t\tclass_<" + self.name + ">(\"Cpp" + self.name + "\"" + text = "\n\t\tclass_<" + self.name + ">(\"" + self.name + "\"" text += body return text