Remove immediate pragma (#11308)
* remove immediate from tests * remove immediate from the compiler
This commit is contained in:
parent
eb471acffb
commit
5b27b263fd
22 changed files with 53 additions and 116 deletions
|
|
@ -1063,8 +1063,7 @@ template instantiateForRegion(allocator: untyped) =
|
|||
result = realloc(p, newSize)
|
||||
|
||||
when hasThreadSupport:
|
||||
|
||||
template sharedMemStatsShared(v: int) {.immediate.} =
|
||||
template sharedMemStatsShared(v: int) =
|
||||
acquireSys(heapLock)
|
||||
result = v
|
||||
releaseSys(heapLock)
|
||||
|
|
|
|||
|
|
@ -19,11 +19,6 @@
|
|||
when not defined(nimNewShared):
|
||||
{.pragma: gcsafe.}
|
||||
|
||||
when not defined(nimImmediateDeprecated):
|
||||
{.pragma: oldimmediate, immediate.}
|
||||
else:
|
||||
{.pragma: oldimmediate.}
|
||||
|
||||
when defined(createNimRtl):
|
||||
when defined(useNimRtl):
|
||||
{.error: "Cannot create and use nimrtl at the same time!".}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue