Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoirier committed Jul 6, 2015
1 parent 6ed4aa1 commit e1f6569
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions interpreter.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,28 @@
#define max(a, b) (((a) > (b)) ? (a) : (b))
#endif
*/
/* Get the name of a type */
// #define typename(x) _Generic((x), \
// _Bool: "_Bool", \
// unsigned char: "unsigned char", \
// char: "char", \
// signed char: "signed char", \
// short int: "short int", \
// unsigned short int: "unsigned short int", \
// int: "int", \
// unsigned int: "unsigned int", \
// long int: "long int", \
// unsigned long int: "unsigned long int", \
// long long int: "long long int", \
// unsigned long long int: "unsigned long long int", \
// float: "float", \
// double: "double", \
// long double: "long double", \
// char *: "pointer to char", \
// void *: "pointer to void", \
// int *: "pointer to int", \
// default: "other") (x)


#define MEM_ALIGN(x) (((x) + sizeof(ALIGN_TYPE)-1) & ~(sizeof(ALIGN_TYPE)-1))

Expand Down

0 comments on commit e1f6569

Please sign in to comment.