#pragma once #if REPL_INTERRUPT && !__has_include() #undef REPL_INTERRUPT #endif bool cbqn_takeInterrupts(bool b); #if REPL_INTERRUPT extern volatile int cbqn_interrupted; NOINLINE NORETURN void cbqn_onInterrupt(); #define CHECK_INTERRUPT ({ if (cbqn_interrupted) cbqn_onInterrupt(); }) #else #define CHECK_INTERRUPT #endif