Skip to content

Commit

Permalink
Compiler.inl: Add DEBUG_BREAK macro.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Jan 17, 2016
1 parent 82fe59f commit a45c789
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Common/Compiler.inl
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@
#define NO_INLINE __attribute__((noinline))
#define FORCE_INLINE __attribute__((always_inline)) inline
#define ALIGN(a) __attribute__((aligned(a)))
#define DEBUG_BREAK asm("int $3")
#elif defined(_MSC_VER)
#define NO_INLINE __declspec(noinline)
#define FORCE_INLINE __forceinline
#define ALIGN(a) __declspec(align(a))
#define DEBUG_BREAK _asm { int 3 }
#define __thread __declspec(thread)
#endif

Expand Down

0 comments on commit a45c789

Please sign in to comment.