Skip to content

Commit

Permalink
Much nicer (thanks to @sreimers)
Browse files Browse the repository at this point in the history
  • Loading branch information
larsimmisch committed Sep 25, 2023
1 parent 9b07028 commit c933016
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/re_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ typedef SSIZE_T ssize_t;
/** Defines a soft breakpoint */
#if (defined(__i386__) || defined(__x86_64__))
#define RE_BREAKPOINT __asm__("int $0x03")
#elif defined(__aarch64__)
#elif defined(__has_builtin) && __has_builtin(__builtin_debugtrap)
#define RE_BREAKPOINT __builtin_debugtrap()
#else
#define RE_BREAKPOINT
Expand Down

0 comments on commit c933016

Please sign in to comment.