mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-05 13:34:46 +00:00
Merge branch 'devel' into faster-nimsuggest
This commit is contained in:
@@ -46,6 +46,8 @@
|
||||
##
|
||||
## **Warning:** The global list of handlers is a thread var, this means that
|
||||
## the handlers must be re-added in each thread.
|
||||
## **Warning:** When logging on disk or console, only error and fatal messages
|
||||
## are flushed out immediately. Use flushFile() where needed.
|
||||
|
||||
import strutils, times
|
||||
when not defined(js):
|
||||
|
||||
@@ -898,7 +898,7 @@ proc toHex*(x: BiggestInt, len: Positive): string {.noSideEffect,
|
||||
|
||||
proc toHex*[T](x: T): string =
|
||||
## Shortcut for ``toHex(x, T.sizeOf * 2)``
|
||||
toHex(x, T.sizeOf * 2)
|
||||
toHex(BiggestInt(x), T.sizeOf * 2)
|
||||
|
||||
proc intToStr*(x: int, minchars: Positive = 1): string {.noSideEffect,
|
||||
rtl, extern: "nsuIntToStr".} =
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
## echo "run before each test"
|
||||
##
|
||||
## teardown:
|
||||
## echo "run after each test":
|
||||
## echo "run after each test"
|
||||
##
|
||||
## test "essential truths":
|
||||
## # give up and stop if this fails
|
||||
|
||||
@@ -2743,6 +2743,7 @@ when not defined(JS): #and not defined(nimscript):
|
||||
# we use binary mode on Windows:
|
||||
c_setmode(c_fileno(stdin), O_BINARY)
|
||||
c_setmode(c_fileno(stdout), O_BINARY)
|
||||
c_setmode(c_fileno(stderr), O_BINARY)
|
||||
|
||||
when defined(endb):
|
||||
proc endbStep()
|
||||
|
||||
Reference in New Issue
Block a user