Example #1
0
int CtrlCHit( void )
{
    int hit;

    DosHoldSignal( HLDSIG_DISABLE );
    hit = interruptOccurred;
    interruptOccurred = 0;
    DosHoldSignal( HLDSIG_ENABLE );

    return( hit );
}
Example #2
0
bool CtrlCHit( void )
{
    bool    hit;

#ifdef _M_I86
    DosHoldSignal( HLDSIG_DISABLE );
#endif
    hit = interruptOccurred;
    interruptOccurred = false;
#ifdef _M_I86
    DosHoldSignal( HLDSIG_ENABLE );
#endif

    return( hit );
}