preproc.c: added deprecation warning for context-local label fallthrough

This commit is contained in:
Keith Kanios 2010-08-09 00:55:44 -05:00
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 */