Skip to content

Instantly share code, notes, and snippets.

View avysk's full-sized avatar

Alexey Vyskubov avysk

View GitHub Profile
@avysk
avysk / a.c
Created February 25, 2020 15:42
#include <stdio.h>
#include <setjmp.h>
static jmp_buf buf1, buf2;
#define FOR(VAR, START, FINISH) if (!setjmp(buf1)) { for (int (VAR) = START; (VAR) <= (FINISH); (VAR)++) {
#define NEXT if (!setjmp(buf2)) continue
#define ENDFOR longjmp(buf1, 1); } longjmp(buf2, 1); }