Skip to content

Commit

Permalink
Try to fix MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
larsimmisch committed Sep 26, 2023
1 parent c933016 commit 036b78e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions include/re_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,13 @@ typedef SSIZE_T ssize_t;
/** Defines a soft breakpoint */
#if (defined(__i386__) || defined(__x86_64__))
#define RE_BREAKPOINT __asm__("int $0x03")
#elif defined(__has_builtin) && __has_builtin(__builtin_debugtrap)
#elif defined(__has_builtin)
#if __has_builtin(__builtin_debugtrap)
#define RE_BREAKPOINT __builtin_debugtrap()
#else
#endif
#endif

#ifndef RE_BREAKPOINT
#define RE_BREAKPOINT
#endif

Expand Down

0 comments on commit 036b78e

Please sign in to comment.