From: cuz Date: Sat, 30 Aug 2003 12:29:28 +0000 (+0000) Subject: Reorder for better error messages X-Git-Tag: V2.12.0~1342 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=314b61f97a6a06f9af0b5b6718c9cea59fcf51e4;p=cc65 Reorder for better error messages git-svn-id: svn://svn.cc65.org/cc65/trunk@2427 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/function.c b/src/cc65/function.c index fb274d8f9..c30e682a6 100644 --- a/src/cc65/function.c +++ b/src/cc65/function.c @@ -471,15 +471,15 @@ void NewFunc (SymEntry* Func) /* Generate the exit code */ g_leave (); - /* Eat the closing brace */ - ConsumeRCurly (); - /* Emit references to imports/exports */ EmitExternals (); /* Leave the lexical level */ LeaveFunctionLevel (); + /* Eat the closing brace */ + ConsumeRCurly (); + /* Switch back to the old segments */ PopSegments ();