summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/asmjit/src/asmjit/core/logger.h
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/asmjit/src/asmjit/core/logger.h')
-rw-r--r--3rdparty/asmjit/src/asmjit/core/logger.h54
1 files changed, 27 insertions, 27 deletions
diff --git a/3rdparty/asmjit/src/asmjit/core/logger.h b/3rdparty/asmjit/src/asmjit/core/logger.h
index d416a50d84d..54c169f52fe 100644
--- a/3rdparty/asmjit/src/asmjit/core/logger.h
+++ b/3rdparty/asmjit/src/asmjit/core/logger.h
@@ -47,38 +47,38 @@ public:
//! \{
//! Returns \ref FormatOptions of this logger.
- inline FormatOptions& options() noexcept { return _options; }
+ ASMJIT_INLINE_NODEBUG FormatOptions& options() noexcept { return _options; }
//! \overload
- inline const FormatOptions& options() const noexcept { return _options; }
+ ASMJIT_INLINE_NODEBUG const FormatOptions& options() const noexcept { return _options; }
//! Sets formatting options of this Logger to `options`.
- inline void setOptions(const FormatOptions& options) noexcept { _options = options; }
+ ASMJIT_INLINE_NODEBUG void setOptions(const FormatOptions& options) noexcept { _options = options; }
//! Resets formatting options of this Logger to defaults.
- inline void resetOptions() noexcept { _options.reset(); }
+ ASMJIT_INLINE_NODEBUG void resetOptions() noexcept { _options.reset(); }
//! Returns formatting flags.
- inline FormatFlags flags() const noexcept { return _options.flags(); }
+ ASMJIT_INLINE_NODEBUG FormatFlags flags() const noexcept { return _options.flags(); }
//! Tests whether the logger has the given `flag` enabled.
- inline bool hasFlag(FormatFlags flag) const noexcept { return _options.hasFlag(flag); }
+ ASMJIT_INLINE_NODEBUG bool hasFlag(FormatFlags flag) const noexcept { return _options.hasFlag(flag); }
//! Sets formatting flags to `flags`.
- inline void setFlags(FormatFlags flags) noexcept { _options.setFlags(flags); }
+ ASMJIT_INLINE_NODEBUG void setFlags(FormatFlags flags) noexcept { _options.setFlags(flags); }
//! Enables the given formatting `flags`.
- inline void addFlags(FormatFlags flags) noexcept { _options.addFlags(flags); }
+ ASMJIT_INLINE_NODEBUG void addFlags(FormatFlags flags) noexcept { _options.addFlags(flags); }
//! Disables the given formatting `flags`.
- inline void clearFlags(FormatFlags flags) noexcept { _options.clearFlags(flags); }
+ ASMJIT_INLINE_NODEBUG void clearFlags(FormatFlags flags) noexcept { _options.clearFlags(flags); }
//! Returns indentation of a given indentation `group`.
- inline uint32_t indentation(FormatIndentationGroup type) const noexcept { return _options.indentation(type); }
+ ASMJIT_INLINE_NODEBUG uint32_t indentation(FormatIndentationGroup type) const noexcept { return _options.indentation(type); }
//! Sets indentation of the given indentation `group` to `n` spaces.
- inline void setIndentation(FormatIndentationGroup type, uint32_t n) noexcept { _options.setIndentation(type, n); }
+ ASMJIT_INLINE_NODEBUG void setIndentation(FormatIndentationGroup type, uint32_t n) noexcept { _options.setIndentation(type, n); }
//! Resets indentation of the given indentation `group` to 0 spaces.
- inline void resetIndentation(FormatIndentationGroup type) noexcept { _options.resetIndentation(type); }
+ ASMJIT_INLINE_NODEBUG void resetIndentation(FormatIndentationGroup type) noexcept { _options.resetIndentation(type); }
//! Returns padding of a given padding `group`.
- inline size_t padding(FormatPaddingGroup type) const noexcept { return _options.padding(type); }
+ ASMJIT_INLINE_NODEBUG size_t padding(FormatPaddingGroup type) const noexcept { return _options.padding(type); }
//! Sets padding of a given padding `group` to `n`.
- inline void setPadding(FormatPaddingGroup type, uint32_t n) noexcept { _options.setPadding(type, n); }
+ ASMJIT_INLINE_NODEBUG void setPadding(FormatPaddingGroup type, uint32_t n) noexcept { _options.setPadding(type, n); }
//! Resets padding of a given padding `group` to 0, which means that a default will be used.
- inline void resetPadding(FormatPaddingGroup type) noexcept { _options.resetPadding(type); }
+ ASMJIT_INLINE_NODEBUG void resetPadding(FormatPaddingGroup type) noexcept { _options.resetPadding(type); }
//! \}
@@ -90,12 +90,12 @@ public:
//! The function can accept either a null terminated string if `size` is `SIZE_MAX` or a non-null terminated
//! string of the given `size`. The function cannot assume that the data is null terminated and must handle
//! non-null terminated inputs.
- virtual Error _log(const char* data, size_t size) noexcept = 0;
+ ASMJIT_API virtual Error _log(const char* data, size_t size) noexcept;
//! Logs string `str`, which is either null terminated or having size `size`.
- inline Error log(const char* data, size_t size = SIZE_MAX) noexcept { return _log(data, size); }
+ ASMJIT_INLINE_NODEBUG Error log(const char* data, size_t size = SIZE_MAX) noexcept { return _log(data, size); }
//! Logs content of a string `str`.
- inline Error log(const String& str) noexcept { return _log(str.data(), str.size()); }
+ ASMJIT_INLINE_NODEBUG Error log(const String& str) noexcept { return _log(str.data(), str.size()); }
//! Formats the message by using `snprintf()` and then passes the formatted string to \ref _log().
ASMJIT_API Error logf(const char* fmt, ...) noexcept;
@@ -119,7 +119,7 @@ public:
//! Creates a new `FileLogger` that logs to `FILE*`.
ASMJIT_API FileLogger(FILE* file = nullptr) noexcept;
//! Destroys the `FileLogger`.
- ASMJIT_API virtual ~FileLogger() noexcept;
+ ASMJIT_API ~FileLogger() noexcept override;
//! \}
@@ -127,14 +127,14 @@ public:
//! \{
//! Returns the logging output stream or null if the logger has no output stream.
- inline FILE* file() const noexcept { return _file; }
+ ASMJIT_INLINE_NODEBUG FILE* file() const noexcept { return _file; }
//! Sets the logging output stream to `stream` or null.
//!
//! \note If the `file` is null the logging will be disabled. When a logger is attached to `CodeHolder` or any
//! emitter the logging API will always be called regardless of the output file. This means that if you really
//! want to disable logging at emitter level you must not attach a logger to it.
- inline void setFile(FILE* file) noexcept { _file = file; }
+ ASMJIT_INLINE_NODEBUG void setFile(FILE* file) noexcept { _file = file; }
//! \}
@@ -155,7 +155,7 @@ public:
//! Create new `StringLogger`.
ASMJIT_API StringLogger() noexcept;
//! Destroys the `StringLogger`.
- ASMJIT_API virtual ~StringLogger() noexcept;
+ ASMJIT_API ~StringLogger() noexcept override;
//! \}
@@ -165,16 +165,16 @@ public:
//! Returns the content of the logger as \ref String.
//!
//! It can be moved, if desired.
- inline String& content() noexcept { return _content; }
+ ASMJIT_INLINE_NODEBUG String& content() noexcept { return _content; }
//! \overload
- inline const String& content() const noexcept { return _content; }
+ ASMJIT_INLINE_NODEBUG const String& content() const noexcept { return _content; }
//! Returns aggregated logger data as `char*` pointer.
//!
//! The pointer is owned by `StringLogger`, it can't be modified or freed.
- inline const char* data() const noexcept { return _content.data(); }
+ ASMJIT_INLINE_NODEBUG const char* data() const noexcept { return _content.data(); }
//! Returns size of the data returned by `data()`.
- inline size_t dataSize() const noexcept { return _content.size(); }
+ ASMJIT_INLINE_NODEBUG size_t dataSize() const noexcept { return _content.size(); }
//! \}
@@ -182,7 +182,7 @@ public:
//! \{
//! Clears the accumulated logger data.
- inline void clear() noexcept { _content.clear(); }
+ ASMJIT_INLINE_NODEBUG void clear() noexcept { _content.clear(); }
//! \}