MCPcopy Create free account
hub / github.com/Meridian59/Meridian59 / codegen_parameter

Function codegen_parameter

blakcomp/codegen.c:677–684  ·  view source on GitHub ↗

/ * codegen_parameter: Generate code for a single parameter to a message handler. */

Source from the content-addressed store, hash-verified

675 * codegen_parameter: Generate code for a single parameter to a message handler.
676 */
677void codegen_parameter(param_type p)
678{
679 /* Write out parameter's id # */
680 OutputInt(outfile, p->lhs->idnum);
681
682 /* Write out parameter's default value */
683 OutputConstant(outfile, p->rhs);
684}
685/************************************************************************/
686/*
687 * codegen_classvar: Generate code for a single classvar.

Callers 1

codegen_messageFunction · 0.85

Calls 2

OutputIntFunction · 0.85
OutputConstantFunction · 0.85

Tested by

no test coverage detected