From d72c58236e5c1dac11472784beb2f1decb2bbafd Mon Sep 17 00:00:00 2001 From: Daniel_Cortez Date: Mon, 31 Dec 2018 20:23:29 +0700 Subject: [PATCH] Fix Pawn functions not being suggested before the point of their definition/implementation --- source/compiler/sc5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/compiler/sc5.c b/source/compiler/sc5.c index 9e5fd6c..b418698 100644 --- a/source/compiler/sc5.c +++ b/source/compiler/sc5.c @@ -509,7 +509,7 @@ static int find_closest_symbol_table(const char *name,const symbol *root,int sym for (sym=root->next; sym!=NULL; sym=sym->next) { if (sym->fnumber!=-1 && sym->fnumber!=fcurrent) continue; - if ((sym->usage & uDEFINE)==0) + if ((sym->usage & uDEFINE)==0 && (sym->ident!=iFUNCTN || (sym->usage & (uNATIVE | uPROTOTYPED))!=uPROTOTYPED)) continue; switch (sym->ident) {