Skip to content

Instantly share code, notes, and snippets.

@yugui
yugui / keybase.md
Last active September 10, 2019 13:51

Keybase proof

I hereby claim:

  • I am yugui on github.
  • I am yugui (https://keybase.io/yugui) on keybase.
  • I have a public key ASAfseopmrn1MrW_aSjjSeTm_IjW98wEtRAO6LjvmGNAmAo

To claim this, I am signing this object:

#include <stdio.h>
#define IS_ARRAY(ary) ((void*)(ary) == (void*)&(ary))
#define TEST(ary, expected) \
printf( \
"%s:%u: expected %s, actually %s\n", \
__FILE__, \
__LINE__, \
expected, \
(IS_ARRAY(ary) ? "array" : "ptr"))