include system/coro_detection

This commit is contained in:
ringabout
2025-12-16 20:50:34 +08:00
parent 9d2776c907
commit b816cb9000
3 changed files with 5 additions and 5 deletions

View File

@@ -21,7 +21,7 @@
##
## Unstable API.
import system/coro_detection
include system/coro_detection
when not nimCoroutines and not defined(nimdoc):
when defined(noNimCoroutines):

View File

@@ -2012,7 +2012,7 @@ proc `<`*[T: tuple](x, y: T): bool =
return false
import system/coro_detection
include system/coro_detection
{.push checks: off.}
# obviously we cannot generate checking operations here :-)

View File

@@ -11,10 +11,10 @@ when defined(nimCoroutines):
# Explicit opt-in.
when not coroutinesSupportedPlatform():
{.error: "Coroutines are not supported on this architecture and/or garbage collector.".}
const nimCoroutines* = true
const nimCoroutines = true
elif defined(noNimCoroutines):
# Explicit opt-out.
const nimCoroutines* = false
const nimCoroutines = false
else:
# Autodetect coroutine support.
const nimCoroutines* = false
const nimCoroutines = false