hintMsgOrigin now works in VM code (#14678)
* `hintMsgOrigin` now works in VM code * remove a simplification for now
This commit is contained in:
parent
faedb14a16
commit
de5cde473a
2 changed files with 11 additions and 13 deletions
|
|
@ -13,7 +13,7 @@ import
|
|||
import std/private/miscdollars
|
||||
import strutils2
|
||||
|
||||
type InstantiationInfo = typeof(instantiationInfo())
|
||||
type InstantiationInfo* = typeof(instantiationInfo())
|
||||
template instLoc(): InstantiationInfo = instantiationInfo(-2, fullPaths = true)
|
||||
|
||||
template flushDot(conf, stdorr) =
|
||||
|
|
@ -385,7 +385,7 @@ proc getMessageStr(msg: TMsgKind, arg: string): string =
|
|||
result = msgKindToString(msg) % [arg]
|
||||
|
||||
type
|
||||
TErrorHandling = enum doNothing, doAbort, doRaise
|
||||
TErrorHandling* = enum doNothing, doAbort, doRaise
|
||||
|
||||
proc log*(s: string) =
|
||||
var f: File
|
||||
|
|
@ -485,7 +485,7 @@ proc formatMsg*(conf: ConfigRef; info: TLineInfo, msg: TMsgKind, arg: string): s
|
|||
else: ErrorTitle
|
||||
conf.toFileLineCol(info) & " " & title & getMessageStr(msg, arg)
|
||||
|
||||
proc liMessage(conf: ConfigRef; info: TLineInfo, msg: TMsgKind, arg: string,
|
||||
proc liMessage*(conf: ConfigRef; info: TLineInfo, msg: TMsgKind, arg: string,
|
||||
eh: TErrorHandling, info2: InstantiationInfo, isRaw = false) {.noinline.} =
|
||||
var
|
||||
title: string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue