X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcc65%2Ffunction.c;h=c30e682a63eb17dd51ce5ade0a459844e5ed207b;hb=4a667ead00c10797fb57298b3dd33c2efc6c8d3f;hp=fb274d8f99de19133d125e3ade6890ffe875baff;hpb=73dfa23c987d8a7f1154801b85c171f9e01dcd58;p=cc65 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 ();