summary refs log tree commit diff stats
path: root/lib/system.nim
diff options
context:
space:
mode:
authorflywind <xzsflywind@gmail.com>2021-07-20 20:12:15 +0800
committerGitHub <noreply@github.com>2021-07-20 20:12:15 +0800
commitdbf8d0b8946419311ac710b1adc995ad206b52c1 (patch)
tree26221e32b37311f2bc329b0de1160855bb2308a7 /lib/system.nim
parent6286b5599c7d9fc03f3a6809f5c17fbefc23427e (diff)
downloadNim-dbf8d0b8946419311ac710b1adc995ad206b52c1.tar.gz
use more `.}` (#18542)
Diffstat (limited to 'lib/system.nim')
-rw-r--r--lib/system.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 2790187f4..e878f9f2f 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -536,7 +536,7 @@ include "system/arithmetics"
 include "system/comparisons"
 
 const
-  appType* {.magic: "AppType"}: string = ""
+  appType* {.magic: "AppType".}: string = ""
     ## A string that describes the application type. Possible values:
     ## `"console"`, `"gui"`, `"lib"`.
 
@@ -1101,15 +1101,15 @@ const
     ## True only when accessed in the main module. This works thanks to
     ## compiler magic. It is useful to embed testing code in a module.
 
-  CompileDate* {.magic: "CompileDate"}: string = "0000-00-00"
+  CompileDate* {.magic: "CompileDate".}: string = "0000-00-00"
     ## The date (in UTC) of compilation as a string of the form
     ## `YYYY-MM-DD`. This works thanks to compiler magic.
 
-  CompileTime* {.magic: "CompileTime"}: string = "00:00:00"
+  CompileTime* {.magic: "CompileTime".}: string = "00:00:00"
     ## The time (in UTC) of compilation as a string of the form
     ## `HH:MM:SS`. This works thanks to compiler magic.
 
-  cpuEndian* {.magic: "CpuEndian"}: Endianness = littleEndian
+  cpuEndian* {.magic: "CpuEndian".}: Endianness = littleEndian
     ## The endianness of the target CPU. This is a valuable piece of
     ## information for low-level code only. This works thanks to compiler
     ## magic.
vision' href='/akkartik/mu/blame/html/subx/022div.cc.html?h=hlt&id=c4412d299ee983da5bfca64f33cf6f3eb478d232'>^
52daf072 ^















762107fd ^
52daf072 ^



d3a9db3a ^
52daf072 ^


d3a9db3a ^
c504ca56 ^
52daf072 ^


d3a9db3a ^
fcc161e7 ^

52daf072 ^




d3a9db3a ^


52daf072 ^




d3a9db3a ^
c504ca56 ^
52daf072 ^


d3a9db3a ^
fcc161e7 ^

52daf072 ^





1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100