Nim namespace for cpp (#7453)
- new option --usenamespace to generate nim cpp code in its own namespace Nim - minor changes for compatibility with the new Embarcadero = Borland C++-Builder (bcc)
This commit is contained in:
parent
70c0ff1be2
commit
0ce28d15cc
8 changed files with 44 additions and 7 deletions
|
|
@ -698,6 +698,11 @@ proc processSwitch(switch, arg: string, pass: TCmdLinePass, info: TLineInfo;
|
|||
expectNoArg(switch, arg, pass, info)
|
||||
newDestructors = true
|
||||
defineSymbol("nimNewRuntime")
|
||||
of "cppcompiletonamespace":
|
||||
expectNoArg(switch, arg, pass, info)
|
||||
useNimNamespace = true
|
||||
defineSymbol("cppCompileToNamespace")
|
||||
|
||||
else:
|
||||
if strutils.find(switch, '.') >= 0: options.setConfigVar(switch, arg)
|
||||
else: invalidCmdLineOption(pass, switch, info)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue