AsmJit
Low-Latency Machine Code Generation
Logger that can log to a FILE*
.
nullptr
)noexcept◆ Creates a new FileLogger
that logs to FILE*
.
Destroys the FileLogger
.
Returns the logging output stream or null if the logger has no output stream.
Sets the logging output stream to stream
or null.
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. SIZE_MAX
)overridenoexcept◆ Logs str
- must be reimplemented.
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.
Reimplemented from asmjit::Logger.