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

Function codegen_classvar

blakcomp/codegen.c:689–696  ·  view source on GitHub ↗

/ * codegen_classvar: Generate code for a single classvar. */

Source from the content-addressed store, hash-verified

687 * codegen_classvar: Generate code for a single classvar.
688 */
689void codegen_classvar(classvar_type c)
690{
691 /* Write out # of classvar */
692 OutputInt(outfile, c->id->idnum);
693
694 /* Write out value of classvar */
695 OutputConstant(outfile, c->rhs);
696}
697/************************************************************************/
698/*
699 * codegen_property: Generate code for a single property.

Callers 1

codegen_classFunction · 0.85

Calls 2

OutputIntFunction · 0.85
OutputConstantFunction · 0.85

Tested by

no test coverage detected