mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-11 22:28:12 +00:00
* fixes #17173 * add testcase (#17214) * Apply suggestions from code review * fix for newruntime * Apply suggestions from code review * Update lib/system.nim * Update lib/system.nim * Update lib/system.nim Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com> Co-authored-by: flywind <xzsflywind@gmail.com> Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com>
This commit is contained in:
@@ -3127,3 +3127,9 @@ export io
|
||||
|
||||
when not defined(createNimHcr) and not defined(nimscript):
|
||||
include nimhcr
|
||||
|
||||
when notJSnotNims and not defined(nimSeqsV2):
|
||||
proc prepareStrMutation*(s: var string) {.inline.} =
|
||||
## String literals (e.g. "abc", etc) in the ARC/ORC mode are "copy on write",
|
||||
## therefore you should call `prepareStrMutation` before modifying the strings.
|
||||
discard
|
||||
|
||||
Reference in New Issue
Block a user