Skip to content

Instantly share code, notes, and snippets.

@PhDP
Created January 26, 2012 10:54
Show Gist options
  • Save PhDP/1682224 to your computer and use it in GitHub Desktop.
Save PhDP/1682224 to your computer and use it in GitHub Desktop.
assert example
// gcc assert.c -o assert
// gcc -DNDEBUG assert.c -o assert
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
int main()
{
assert(1 == 2);
printf("Salut!\n");
return EXIT_SUCCESS;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment