Skip to content

Instantly share code, notes, and snippets.

@jdarge
Created April 28, 2024 16:33
Show Gist options
  • Save jdarge/f8f8d4dd423ccb100eb523a68725e8ee to your computer and use it in GitHub Desktop.
Save jdarge/f8f8d4dd423ccb100eb523a68725e8ee to your computer and use it in GitHub Desktop.
#define ERROR \
do {\
fprintf(stderr, "\nERROR: \nFile: \"%s\" \nFunction: \"%s()\" \nLine: \"%i\"\n\n", \
__FILE__, __func__, __LINE__);\
raise(SIGSEGV);\
} while(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment