Commit d95e0e1d authored by gsamain's avatar gsamain Committed by Xavier Thompson

Cpp: Issue error when trying to declare a cppclass in a c-only compilation target

parent fa865859
......@@ -1462,6 +1462,8 @@ class CppClassNode(CStructOrUnionDefNode, BlockNode):
decorators = None
def declare(self, env):
if not env.is_cpp():
error(self.pos, "Could not use cppclass in a c-only environment !")
if self.templates is None:
template_types = None
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