system: TaintedString: reduce duplication and link to manual
This commit is contained in:
parent
6a0d288cae
commit
b52240fc9e
1 changed files with 8 additions and 8 deletions
|
|
@ -1313,20 +1313,20 @@ when defined(boehmgc):
|
||||||
|
|
||||||
when taintMode:
|
when taintMode:
|
||||||
type TaintedString* = distinct string ## a distinct string type that
|
type TaintedString* = distinct string ## a distinct string type that
|
||||||
## is `tainted`:idx:. It is an alias for
|
## is `tainted`:idx:, see `taint mode
|
||||||
|
## <manual.html#taint-mode>`_ for
|
||||||
|
## details. It is an alias for
|
||||||
## ``string`` if the taint mode is not
|
## ``string`` if the taint mode is not
|
||||||
## turned on. Use the ``-d:taintMode``
|
## turned on.
|
||||||
## command line switch to turn the taint
|
|
||||||
## mode on.
|
|
||||||
|
|
||||||
proc len*(s: TaintedString): int {.borrow.}
|
proc len*(s: TaintedString): int {.borrow.}
|
||||||
else:
|
else:
|
||||||
type TaintedString* = string ## a distinct string type that
|
type TaintedString* = string ## a distinct string type that
|
||||||
## is `tainted`:idx:. It is an alias for
|
## is `tainted`:idx:, see `taint mode
|
||||||
|
## <manual.html#taint-mode>`_ for
|
||||||
|
## details. It is an alias for
|
||||||
## ``string`` if the taint mode is not
|
## ``string`` if the taint mode is not
|
||||||
## turned on. Use the ``-d:taintMode``
|
## turned on.
|
||||||
## command line switch to turn the taint
|
|
||||||
## mode on.
|
|
||||||
|
|
||||||
when defined(profiler):
|
when defined(profiler):
|
||||||
proc nimProfile() {.compilerProc, noinline.}
|
proc nimProfile() {.compilerProc, noinline.}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue