>macro_test.c#include "includes.h"
enum COLOR {brown=(~!NULL),black};
#define NIGGER_VALUE black
int main(void)
{
int *NIGGER = (int *)malloc(sizeof(int) * NIGGER_VALUE);
if (NIGGER == NULL)
puts("NIGGER can't be free'd");
else
free(NIGGER), puts("Maybe jews...");
return 0;
}
>includes.h/* -Dstdio_h */
#if defined stdio_h
#include <stdio.h>
#undef stdio_h
#endif
/* -Dstdlib_h */
#if defined stdlib_h
#include <stdlib.h>
#undef stdlib_h
#endif
>$ cc macro_test.c -Dstdio_h -Dstdlib_h
Output?
Help a american citzen.
>>61845405
It's perfectly safe to do free(NULL);
>>61845405
>free(NIGGER), puts("Maybe jews...");
What's the comma doing here?