1.6.3. Finish a command implementation

[<<<] [>>>]

This macro generates the finishing code that a function impementing a BASIC command or built-in function should have.

END 

in the current implementation generates the following code:

goto _FunctionFinishLabel;
_FunctionFinishLabel:
memory_ReleaseMortals(pEo->pMo,&_ThisCommandMortals);
iErrorCode = 0;
}

Note that further implemenation changes may change the actual code generated not followed in this documentation. However the actual use of the macro should not change.

Some part of the code may seem unneccesary. The goto just before the label, or the final assignment to a local variable. These are present to avoid some compiler warning and clever compilers should optimize out these constructs.


[<<<] [>>>]