mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-15 15:44:14 +00:00
minor documentation improvements
This commit is contained in:
@@ -1018,12 +1018,12 @@ the -d/--define option at compile time.
|
||||
The implementation currently provides the following possible options (various
|
||||
others may be added later).
|
||||
|
||||
=============== ============================================
|
||||
pragma description
|
||||
=============== ============================================
|
||||
intdefine Reads in a build-time define as an integer
|
||||
strdefine Reads in a build-time define as a string
|
||||
=============== ============================================
|
||||
================= ============================================
|
||||
pragma description
|
||||
================= ============================================
|
||||
`intdefine`:idx: Reads in a build-time define as an integer
|
||||
`strdefine`:idx: Reads in a build-time define as a string
|
||||
================= ============================================
|
||||
|
||||
.. code-block:: nim
|
||||
const FooBar {.intdefine.}: int = 5
|
||||
|
||||
@@ -1185,7 +1185,7 @@ proc createHardlink*(src, dest: string) =
|
||||
|
||||
proc parseCmdLine*(c: string): seq[string] {.
|
||||
noSideEffect, rtl, extern: "nos$1".} =
|
||||
## Splits a command line into several components;
|
||||
## Splits a `command line`:idx: into several components;
|
||||
## This proc is only occasionally useful, better use the `parseopt` module.
|
||||
##
|
||||
## On Windows, it uses the following parsing rules
|
||||
|
||||
Reference in New Issue
Block a user