mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 22:10:33 +00:00
include system/coro_detection
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
##
|
||||
## Unstable API.
|
||||
|
||||
import system/coro_detection
|
||||
include system/coro_detection
|
||||
|
||||
when not nimCoroutines and not defined(nimdoc):
|
||||
when defined(noNimCoroutines):
|
||||
|
||||
@@ -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 :-)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user