MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / Limit

Function Limit

src/Engine/Adlib/fmopl.cpp:245–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243/* --------------------- subroutines --------------------- */
244
245INLINE int Limit( int val, int max, int min ) {
246 if ( val > max )
247 val = max;
248 else if ( val < min )
249 val = min;
250
251 return val;
252}
253
254/* status set and IRQ handling */
255INLINE void OPL_STATUS_SET(FM_OPL *OPL,int flag)

Callers 2

YM3812UpdateOneFunction · 0.85
Y8950UpdateOneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected