FDK/Tools/Programs/makeotf/makeotf_lib/source/hotconv/MMFX.c
/* Execute metric at default instance. Assumes only one returned result */
Execute metric at default instance. Assumes only one returned result
Execute metric at default instance . Assumes only one returned result
cffFixed MMFXExecMetric(hotCtx g, unsigned id)
	{
	MMFXCtx h = g->ctx.MMFX;
	unsigned length;
	unsigned cstrInx;
	cffFixed result[T2_MAX_OP_STACK];
	if (getMetric(h, id, &cstrInx, &length))
		hotMsg(g, hotFATAL, "Metric id <%u> not found", id);
	cffExecLocalMetric(g->ctx.cff, &h->cstrs.array[cstrInx],
					   h->cstrs.cnt - cstrInx, result);
	return result[0];
	}
cffFixed MMFXExecMetric ( hotCtx g , unsigned id ) { MMFXCtx h = g -> ctx . MMFX ; unsigned length ; unsigned cstrInx ; cffFixed result [ T2_MAX_OP_STACK ] ; if ( getMetric ( h , id , & cstrInx , & length ) ) hotMsg ( g , hotFATAL , " " , id ) ; cffExecLocalMetric ( g -> ctx . cff , & h -> cstrs . array [ cstrInx ] , h -> cstrs . cnt - cstrInx , result ) ; return result [ 0 ] ; }
Execute metric at default instance.
Execute metric at default instance .