better error message for implicitly available modules
This commit is contained in:
parent
0d193a446b
commit
f59e502382
2 changed files with 6 additions and 0 deletions
|
|
@ -13,6 +13,9 @@
|
||||||
##
|
##
|
||||||
## **Note:** The current implementation of message passing is slow and does
|
## **Note:** The current implementation of message passing is slow and does
|
||||||
## not work with cyclic data structures.
|
## not work with cyclic data structures.
|
||||||
|
|
||||||
|
when not defined(NimString):
|
||||||
|
{.error: "You must not import this module explicitly".}
|
||||||
|
|
||||||
type
|
type
|
||||||
pbytes = ptr array[0.. 0xffff, byte]
|
pbytes = ptr array[0.. 0xffff, byte]
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,9 @@
|
||||||
## createThread(thr[i], threadFunc, (i*10, i*10+5))
|
## createThread(thr[i], threadFunc, (i*10, i*10+5))
|
||||||
## joinThreads(thr)
|
## joinThreads(thr)
|
||||||
|
|
||||||
|
when not defined(NimString):
|
||||||
|
{.error: "You must not import this module explicitly".}
|
||||||
|
|
||||||
const
|
const
|
||||||
maxRegisters = 256 # don't think there is an arch with more registers
|
maxRegisters = 256 # don't think there is an arch with more registers
|
||||||
useStackMaskHack = false ## use the stack mask hack for better performance
|
useStackMaskHack = false ## use the stack mask hack for better performance
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue