mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-04-24 19:00:23 +08:00
preproc.c: added deprecation warning for context-local label fallthrough
This commit is contained in:
parent
73b34a5006
commit
fe55e918fa
@ -1456,8 +1456,14 @@ static Context *get_ctx(const char *name, const char **namep,
|
||||
if (namep)
|
||||
*namep = name;
|
||||
|
||||
if (!all_contexts)
|
||||
if (!all_contexts) {
|
||||
return ctx;
|
||||
} else {
|
||||
error(ERR_WARNING, "context-local label expansion"
|
||||
" to outer contexts will be deprecated"
|
||||
" starting in NASM 2.10, please update your"
|
||||
" code accordingly");
|
||||
}
|
||||
|
||||
do {
|
||||
/* Search for this smacro in found context */
|
||||
|
Loading…
x
Reference in New Issue
Block a user