prevent getBacktrace() from being inlined

This commit is contained in:
Ștefan Talpalaru 2019-12-21 11:34:18 +01:00
parent 2ec2964d97
commit 84b40137bb
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ else:
when defined(windows):
{.passl: "-lpsapi".}
proc getBacktrace*(): string =
proc getBacktrace*(): string {.noinline.} =
var
bt: cstring = get_backtrace_c()
btLen = len(bt)