Compiler: Add #pragma deprecated.
This is based on SM, including patch to support macros/constants (https://hg.alliedmods.net/sourcemod-central/rev/ef8dd1cddc35). Updated also some pawn includes to use this new pragma.
This commit is contained in:
@ -1862,6 +1862,11 @@ static int nesting=0;
|
||||
assert(nest_stkusage==0);
|
||||
#endif
|
||||
|
||||
if ((sym->flags & flgDEPRECATED)!=0) {
|
||||
char *ptr= (sym->documentation!=NULL) ? sym->documentation : "";
|
||||
error(233,sym->name,ptr); /* deprecated (probably a native function) */
|
||||
} /* if */
|
||||
|
||||
/* run through the arguments */
|
||||
arg=sym->dim.arglist;
|
||||
assert(arg!=NULL);
|
||||
|
Reference in New Issue
Block a user