mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
**TODO** - [x] fixes changelog With the new option `nimPreviewVtables`, `methods` are confined in the same module where the type of the first parameter is defined - [x] make it opt in after CI checks its feasibility ## In the following-up PRs - [ ] in the following PRs, refactor code into a more efficient one - [ ] cpp needs special treatments since it cannot embed array in light of the preceding limits: ref https://github.com/nim-lang/Nim/pull/20977#discussion_r1035528927; we can support cpp backends with vtable implementations later on the comprise that uses indirect vtable access --------- Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
24 lines
655 B
Nim
24 lines
655 B
Nim
# this config.nims also needs to exist to prevent future regressions, see #9990
|
|
|
|
cppDefine "errno"
|
|
cppDefine "unix"
|
|
|
|
# mangle the macro names in nimbase.h
|
|
cppDefine "NAN_INFINITY"
|
|
cppDefine "INF"
|
|
cppDefine "NAN"
|
|
|
|
when defined(nimStrictMode):
|
|
# xxx add more flags here, and use `-d:nimStrictMode` in more contexts in CI.
|
|
|
|
# enable this:
|
|
# when defined(nimHasWarningAsError):
|
|
# switch("warningAsError", "UnusedImport")
|
|
|
|
when defined(nimHasHintAsError):
|
|
# switch("hint", "ConvFromXtoItselfNotNeeded")
|
|
switch("hintAsError", "ConvFromXtoItselfNotNeeded")
|
|
# future work: XDeclaredButNotUsed
|
|
|
|
switch("define", "nimVersion:" & NimVersion)
|