Skip to content

Instantly share code, notes, and snippets.

@ecere
Created May 5, 2013 04:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ecere/5519686 to your computer and use it in GitHub Desktop.
Save ecere/5519686 to your computer and use it in GitHub Desktop.
#include <stdint.h>
typedef uint64_t uint64;
typedef unsigned int uintsize;
struct Class;
typedef struct Class * Class;
typedef unsigned int bool;
static char * UInt64Hex_OnGetString(Class _class, uint64 * data, char * string, void * fieldData, bool * needClass)
{
return NULL;
}
static char * UIntegerHex_OnGetString(Class _class, unsigned int * data, char * string, void * fieldData, bool * needClass)
{
return NULL;
}
char * TestStuff()
{
return (sizeof(uintsize) == 8 ? UInt64Hex_OnGetString : UIntegerHex_OnGetString)(0, 0, 0, 0, 0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment