mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-09 06:23:25 +00:00
add error for missing commandLineParams (#13719)
* add error for missing commandLineParams * fixup * rewrite
This commit is contained in:
@@ -2770,6 +2770,10 @@ when declared(paramCount) or defined(nimdoc):
|
||||
result = @[]
|
||||
for i in 1..paramCount():
|
||||
result.add(paramStr(i))
|
||||
else:
|
||||
proc commandLineParams*(): seq[TaintedString] {.error:
|
||||
"commandLineParams() unsupported by dynamic libraries".} =
|
||||
discard
|
||||
|
||||
when not weirdTarget and (defined(freebsd) or defined(dragonfly)):
|
||||
proc sysctl(name: ptr cint, namelen: cuint, oldp: pointer, oldplen: ptr csize_t,
|
||||
|
||||
Reference in New Issue
Block a user