Undefine paramCount & paramStr in nimscript.nim for *.nims (#12860)
* Remove `paramStr` and `paramCount` from implicitly imported nimscript.nim * Update changelog.md * Update stable nimble commit hash Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
This commit is contained in:
parent
a3a317b76d
commit
d38853c504
5 changed files with 25 additions and 14 deletions
|
|
@ -2707,7 +2707,23 @@ when defined(nimdoc):
|
|||
## else:
|
||||
## # Do something else!
|
||||
|
||||
elif defined(nintendoswitch) or weirdTarget:
|
||||
elif defined(nimscript):
|
||||
proc paramStr*(i: int): string =
|
||||
## Retrieves the ``i``'th command line parameter.
|
||||
discard
|
||||
|
||||
proc paramCount*(): int =
|
||||
## Retrieves the number of command line parameters.
|
||||
discard
|
||||
|
||||
elif defined(js):
|
||||
proc paramStr*(i: int): TaintedString {.tags: [ReadIOEffect].} =
|
||||
raise newException(OSError, "paramStr is not implemented on JavaScript")
|
||||
|
||||
proc paramCount*(): int {.tags: [ReadIOEffect].} =
|
||||
raise newException(OSError, "paramCount is not implemented on JavaScript")
|
||||
|
||||
elif defined(nintendoswitch):
|
||||
proc paramStr*(i: int): TaintedString {.tags: [ReadIOEffect].} =
|
||||
raise newException(OSError, "paramStr is not implemented on Nintendo Switch")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue