Give better error message when profiler and memProfiler used at same time (#9948)

* Give better error message when profiler and memProfiler used at same time

* Move to profiler.nim
This commit is contained in:
Neelesh Chandola
2018-12-19 14:32:20 +05:30
committed by Andreas Rumpf
parent 642ce799ec
commit 48437d0a84

View File

@@ -13,6 +13,9 @@
# (except perhaps loops that have no side-effects). At every Nth call a
# stack trace is taken. A stack tace is a list of cstrings.
when defined(profiler) and defined(memProfiler):
{.error: "profiler and memProfiler cannot be defined at the same time (See Embedded Stack Trace Profiler (ESTP) User Guide) for more details".}
{.push profiler: off.}
const