system refactorings (#10559)
* move IO subsystem into its own module; refs #10385 * make standalone test compile again * make C++ examples compile again * make more tests green * make sysAssert and gcAssert work again
This commit is contained in:
parent
65f3e390e8
commit
0036014727
14 changed files with 822 additions and 830 deletions
|
|
@ -104,9 +104,11 @@ when not defined(useNimRtl):
|
|||
template gcAssert(cond: bool, msg: string) =
|
||||
when defined(useGcAssert):
|
||||
if not cond:
|
||||
echo "[GCASSERT] ", msg
|
||||
cstderr.rawWrite "[GCASSERT] "
|
||||
cstderr.rawWrite msg
|
||||
when defined(logGC):
|
||||
echo "[GCASSERT] statistics:\L", GC_getStatistics()
|
||||
cstderr.rawWrite "[GCASSERT] statistics:\L"
|
||||
cstderr.rawWrite GC_getStatistics()
|
||||
GC_disable()
|
||||
writeStackTrace()
|
||||
#var x: ptr int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue