From 1b36d7a037eb3d0cb8cb2e0e49aa21f57b5a5db9 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Mon, 25 May 2020 05:46:58 +0200 Subject: [PATCH] cgen: handle c++ keyword --- vlib/v/gen/cgen.v | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vlib/v/gen/cgen.v b/vlib/v/gen/cgen.v index 386c617acb..2bae9dbdc5 100644 --- a/vlib/v/gen/cgen.v +++ b/vlib/v/gen/cgen.v @@ -37,8 +37,10 @@ const ( 'void', 'volatile', 'while', + // C++ keywords 'new', 'namespace', + 'class', 'typename' ] )