mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-21 00:11:26 +00:00
[feature] Add dynlib (required on windows/cpp) to nimCoroutines related gc_common procs (#11567)
This commit is contained in:
committed by
Andreas Rumpf
parent
3d50f7e2a1
commit
b81fd958d1
@@ -252,17 +252,17 @@ else:
|
||||
|
||||
{.push stack_trace: off.}
|
||||
when nimCoroutines:
|
||||
proc GC_addStack(bottom: pointer) {.cdecl, exportc.} =
|
||||
proc GC_addStack(bottom: pointer) {.cdecl, dynlib, exportc.} =
|
||||
# c_fprintf(stdout, "GC_addStack: %p;\n", bottom)
|
||||
var stack = gch.stack.append()
|
||||
stack.bottom = bottom
|
||||
stack.setPosition(bottom)
|
||||
|
||||
proc GC_removeStack(bottom: pointer) {.cdecl, exportc.} =
|
||||
proc GC_removeStack(bottom: pointer) {.cdecl, dynlib, exportc.} =
|
||||
# c_fprintf(stdout, "GC_removeStack: %p;\n", bottom)
|
||||
gch.stack.find(bottom).remove()
|
||||
|
||||
proc GC_setActiveStack(bottom: pointer) {.cdecl, exportc.} =
|
||||
proc GC_setActiveStack(bottom: pointer) {.cdecl, dynlib, exportc.} =
|
||||
## Sets active stack and updates current stack position.
|
||||
# c_fprintf(stdout, "GC_setActiveStack: %p;\n", bottom)
|
||||
var sp {.volatile.}: pointer
|
||||
|
||||
Reference in New Issue
Block a user