FLG_WATCHDOG
#define watchdog_enable(ctx) (ctx)->flags |= FLG_WATCHDOG
#define watchdog_disable(ctx) (ctx)->flags &= ~FLG_WATCHDOG
if (!(ctx->flags & FLG_WATCHDOG))