mark inline (#17180)

This commit is contained in:
flywind 2021-02-24 23:52:23 -06:00 • committed by GitHub
commit 60929953cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -225,7 +225,7 @@ proc joinPath*(parts: varargs[string]): string {.noSideEffect,
for i in 0..high(parts): for i in 0..high(parts):
joinPathImpl(result, state, parts[i]) joinPathImpl(result, state, parts[i])
proc `/`*(head, tail: string): string {.noSideEffect.} = proc `/`*(head, tail: string): string {.noSideEffect, inline.} =
## The same as `joinPath(head, tail) proc <#joinPath,string,string>`_. ## The same as `joinPath(head, tail) proc <#joinPath,string,string>`_.
## ##
## See also: ## See also:
@ -243,7 +243,7 @@ proc `/`*(head, tail: string): string {.noSideEffect.} =
assert "usr/" / "/lib/" == "usr/lib/" assert "usr/" / "/lib/" == "usr/lib/"
assert "usr" / "lib" / "../bin" == "usr/bin" assert "usr" / "lib" / "../bin" == "usr/bin"
return joinPath(head, tail) result = joinPath(head, tail)
proc splitPath*(path: string): tuple[head, tail: string] {. proc splitPath*(path: string): tuple[head, tail: string] {.
noSideEffect, rtl, extern: "nos$1".} = noSideEffect, rtl, extern: "nos$1".} =