Commit 2b03dcfd authored by gsamain's avatar gsamain Committed by Xavier Thompson

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 8f727312
......@@ -1733,6 +1733,8 @@ class CConstOrVolatileType(BaseType):
def cv_string(self):
cvstring = ""
if self.is_cyp_class:
return cvstring
if self.is_const:
cvstring = "const " + cvstring
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