Skip to content

Instantly share code, notes, and snippets.

View barreiroleo's full-sized avatar
💭
I may be slow to respond.

Leo Barreiro barreiroleo

💭
I may be slow to respond.
View GitHub Profile
@barreiroleo
barreiroleo / try-catch-ex.c
Created April 14, 2021 12:18 — forked from rampion/try-catch-ex.c
TRY/CATCH/FINALLY macros for C
// gcc -o try-catch-ex try-catch.c try-catch-ex.c
#include <stdio.h>
#include "try-catch.h"
// Example of use for try-catch.h
int main(int argc, char *argv[])
{
int i = 101;
printf("before try block...\n");