mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-18 13:04:36 +03:00
Use ASMJIT_INLINE_NODEBUG to make debugging easier
Having 'inline' is fine, however, when debugging a class that has abstractions then sometimes to step over all of them can be very frustrating. This is solved by ASMJIT_INLINE_NODEBUG, which tells compiler that the body of a function doesn't have to be debuggable. This mostly applies to getters, setters, and wrappers around API functions. In addition - some assembler tests were split to make the compilation a little bit faster, especially when compiling with UBSAN.
This commit is contained in:
@@ -35,10 +35,10 @@ public:
|
||||
//! \{
|
||||
|
||||
//! Gets whether the current ARM mode is THUMB (alternative to 32-bit ARM encoding).
|
||||
inline bool isInThumbMode() const noexcept { return _environment.isArchThumb(); }
|
||||
ASMJIT_INLINE_NODEBUG bool isInThumbMode() const noexcept { return _environment.isArchThumb(); }
|
||||
|
||||
//! Gets the current code alignment of the current mode (ARM vs THUMB).
|
||||
inline uint32_t codeAlignment() const noexcept { return isInThumbMode() ? 2 : 4; }
|
||||
ASMJIT_INLINE_NODEBUG uint32_t codeAlignment() const noexcept { return isInThumbMode() ? 2 : 4; }
|
||||
|
||||
//! \}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user