mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
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:
@@ -295,7 +295,7 @@ else:
|
||||
|
||||
when (defined(x86) or defined(amd64)) and defined(vcc):
|
||||
proc cpuRelax* {.importc: "YieldProcessor", header: "<windows.h>".}
|
||||
elif (defined(x86) or defined(amd64)) and someGcc:
|
||||
elif (defined(x86) or defined(amd64)) and (someGcc or defined(bcc)):
|
||||
proc cpuRelax* {.inline.} =
|
||||
{.emit: """asm volatile("pause" ::: "memory");""".}
|
||||
elif someGcc or defined(tcc):
|
||||
|
||||
Reference in New Issue
Block a user