Commit b4c7b2e5 authored by gsamain's avatar gsamain

Hacky way to make const cypclass behave as const in Cython but not in C++...

Hacky way to make const cypclass behave as const in Cython but not in C++ (useful for refcount bookkeeping for example)
parent a0b9c1c5
...@@ -1588,6 +1588,8 @@ class CConstOrVolatileType(BaseType): ...@@ -1588,6 +1588,8 @@ class CConstOrVolatileType(BaseType):
def cv_string(self): def cv_string(self):
cvstring = "" cvstring = ""
if self.is_cyp_class:
return cvstring
if self.is_const: if self.is_const:
cvstring = "const " + cvstring cvstring = "const " + cvstring
if self.is_volatile: if self.is_volatile:
......
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