Added COMMA macro to nimbase.h,
changed code generation for c++ template types to insert COMMA im
between the arguments, instead of ",".
This commit is contained in:
mjendrusch 2016-04-17 17:10:24 +02:00
commit 174205bcae
2 changed files with 3 additions and 1 deletions

View file

@ -654,7 +654,7 @@ proc getTypeDescAux(m: BModule, typ: PType, check: var IntSet): Rope =
else: else:
result = cppName & "<" result = cppName & "<"
for i in 1 .. typ.len-2: for i in 1 .. typ.len-2:
if i > 1: result.add(", ") if i > 1: result.add(" COMMA ")
result.add(getTypeDescAux(m, typ.sons[i], check)) result.add(getTypeDescAux(m, typ.sons[i], check))
result.add("> ") result.add("> ")
# always call for sideeffects: # always call for sideeffects:

View file

@ -222,6 +222,8 @@ __clang__
/* ----------------------------------------------------------------------- */ /* ----------------------------------------------------------------------- */
#define COMMA ,
#include <limits.h> #include <limits.h>
#include <stddef.h> #include <stddef.h>