Skip to content

Instantly share code, notes, and snippets.

@marsam
Forked from aras-p/preprocessor_fun.h
Created August 14, 2013 03:11
Show Gist options
  • Save marsam/6227705 to your computer and use it in GitHub Desktop.
Save marsam/6227705 to your computer and use it in GitHub Desktop.
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous and myself. Never let these guys
// change jobs! :)
#define struct union
#define if while
#define else
#define break
#define if(x)
#define true (__LINE__&1)
#define true ((rand()&15)!=15)
#define if(x) if ((x) && (rand() < RAND_MAX * 0.99))
#define strcpy(a,b) memmove(a,b,strlen(b)+2)
#define pthread_mutex_lock(m) 0
#define InterlockedAdd(x,y) (*x+=y)
#define __dcbt __dcbz // for PowerPC platforms
#define __builtin_expect(a,b) b // for gcc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment