Sha256: 760f58d4120d283c07435be74855ad2da1a98e38f976011bb5635ac017e0c106

Contents?: true

Size: 581 Bytes

Versions: 12

Compression:

Stored size: 581 Bytes

Contents

/*
 * Interface for SCS signal handling.
 */

#ifndef CTRLC_H_GUARD
#define CTRLC_H_GUARD

#ifdef __cplusplus
extern "C" {
#endif

#if CTRLC > 0

void scs_start_interrupt_listener(void);
void scs_end_interrupt_listener(void);
int scs_is_interrupted(void);

#else /* CTRLC = 0 */

/* Simply to suppress empty translation unit warnings. */
typedef int scs_make_iso_compilers_happy;

/* No signal handling. */
#define scs_start_interrupt_listener()
#define scs_end_interrupt_listener()
#define scs_is_interrupted() 0

#endif /* END IF CTRLC > 0 */

#ifdef __cplusplus
}
#endif
#endif

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
scs-0.5.0 vendor/scs/include/ctrlc.h
scs-0.4.3 vendor/scs/include/ctrlc.h
scs-0.4.2 vendor/scs/include/ctrlc.h
scs-0.4.1 vendor/scs/include/ctrlc.h
scs-0.4.0 vendor/scs/include/ctrlc.h
scs-0.3.2 vendor/scs/include/ctrlc.h
scs-0.3.1 vendor/scs/include/ctrlc.h
scs-0.3.0 vendor/scs/include/ctrlc.h
scs-0.2.3 vendor/scs/include/ctrlc.h
scs-0.2.2 vendor/scs/include/ctrlc.h
scs-0.2.1 vendor/scs/include/ctrlc.h
scs-0.2.0 vendor/scs/include/ctrlc.h