summary refs log tree commit diff stats
path: root/doc/destructors.rst
diff options
context:
space:
mode:
authoralaviss <alaviss@users.noreply.github.com>2019-06-30 10:30:37 +0000
committerAndreas Rumpf <rumpf_a@web.de>2019-06-30 12:30:37 +0200
commite259f80fc70f1e9b405e68bc820ce8ea5ff500f0 (patch)
tree5cd0e2edb35ecdf190960e66da9156e918440936 /doc/destructors.rst
parent7113c1e931b3183b3416aec24eb2c13a87619636 (diff)
downloadNim-e259f80fc70f1e9b405e68bc820ce8ea5ff500f0.tar.gz
msgs, ccgstmts: fixes #11572 (#11621)
* [refactor] msgs: toFilename now return just the filename

The C codegen uses just the file name for stacktrace when
excessiveStackTrace is off (see quotedName),
so there aren't any reason for other codegen to not do the same.

The file name is now cached in TFileInfo.shortName, which was introduced
for nimsuggest, and went unused after several refactoring of the
compiler.

A toProjPath() proc has been added for the previous behavior of
toFilename().

* ccgstmt: use quotedFilename() for raiseExceptionEx

This is the same proc used for stacktrace when --stacktrace:on

Fixes #11572

* msgs: handle case where file name is not available
Diffstat (limited to 'doc/destructors.rst')
0 files changed, 0 insertions, 0 deletions