From d1d141b135a605f81935e89322549013e5be3863 Mon Sep 17 00:00:00 2001 From: metagn Date: Tue, 23 Aug 2022 22:41:30 +0300 Subject: new .redefine pragma for templates, warn on redefinition without it (#20211) * test CI for template redefinitions * adapt asyncmacro * fix quote * fix again * try something else * revert * fix ioselectors_select, disable packages CI * adapt more tests & simplify * more * more * more * rename to redefine, warn on implicit redefinition * basic documentation [skip ci] * Update compiler/lineinfos.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> --- compiler/condsyms.nim | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/condsyms.nim') diff --git a/compiler/condsyms.nim b/compiler/condsyms.nim index 5a7e78d5f..4d4358b16 100644 --- a/compiler/condsyms.nim +++ b/compiler/condsyms.nim @@ -140,3 +140,4 @@ proc initDefines*(symbols: StringTableRef) = defineSymbol("nimHasEffectsOf") defineSymbol("nimHasEnforceNoRaises") + defineSymbol("nimHasTemplateRedefinitionPragma") -- cgit 1.4.1-2-gfad0