--embedsrc for JavaScript (#21467)
Co-authored-by: quantimnot <quantimnot@users.noreply.github.com>
This commit is contained in:
parent
b2c5f8a05f
commit
6994e1b1d7
1 changed files with 2 additions and 0 deletions
|
|
@ -735,6 +735,8 @@ proc genLineDir(p: PProc, n: PNode) =
|
|||
let line = toLinenumber(n.info)
|
||||
if line < 0:
|
||||
return
|
||||
if optEmbedOrigSrc in p.config.globalOptions:
|
||||
lineF(p, "//$1$n", [sourceLine(p.config, n.info)])
|
||||
if optLineDir in p.options or optLineDir in p.config.options:
|
||||
lineF(p, "$1", [lineDir(p.config, n.info, line)])
|
||||
if hasFrameInfo(p):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue