Commit 58237a15 authored by Xavier Thompson's avatar Xavier Thompson

Allow back 'cppclass' in non-c++ environments but keep disallowing cypclass

parent 37551e27
...@@ -1510,9 +1510,11 @@ class CppClassNode(CStructOrUnionDefNode, BlockNode): ...@@ -1510,9 +1510,11 @@ class CppClassNode(CStructOrUnionDefNode, BlockNode):
scope = None scope = None
template_types = None template_types = None
cpp_message = "Cypclass"
def declare(self, env): def declare(self, env):
if not env.is_cpp(): if self.cypclass:
error(self.pos, "Could not use cppclass in a c-only environment !") self.cpp_check(env)
if self.templates is None: if self.templates is None:
template_types = None template_types = None
else: else:
......
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