Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
Macros
macros.h File Reference

Go to the source code of this file.

Macros

#define ARRAY_COUNT(arr)   (s32)(sizeof(arr) / sizeof(arr[0]))
 
#define GLUE(a, b)   a ## b
 
#define GLUE2(a, b)   GLUE(a, b)
 
#define UNUSED
 
#define STATIC_ASSERT(cond, msg)   typedef char GLUE2(static_assertion_failed, __LINE__)[(cond) ? 1 : -1]
 

Macro Definition Documentation

◆ ARRAY_COUNT

#define ARRAY_COUNT (   arr)    (s32)(sizeof(arr) / sizeof(arr[0]))

◆ GLUE

#define GLUE (   a,
 
)    a ## b

◆ GLUE2

#define GLUE2 (   a,
 
)    GLUE(a, b)

◆ STATIC_ASSERT

#define STATIC_ASSERT (   cond,
  msg 
)    typedef char GLUE2(static_assertion_failed, __LINE__)[(cond) ? 1 : -1]

◆ UNUSED

#define UNUSED