MCPcopy Create free account
hub / github.com/ZDoom/Raze / CodeHolder_setGlobalOption

Function CodeHolder_setGlobalOption

libraries/asmjit/asmjit/base/codeholder.cpp:31–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29// ============================================================================
30
31static void CodeHolder_setGlobalOption(CodeHolder* self, uint32_t clear, uint32_t add) noexcept {
32 // Modify global options of `CodeHolder` itself.
33 self->_globalOptions = (self->_globalOptions & ~clear) | add;
34
35 // Modify all global options of all `CodeEmitter`s attached.
36 CodeEmitter* emitter = self->_emitters;
37 while (emitter) {
38 emitter->_globalOptions = (emitter->_globalOptions & ~clear) | add;
39 emitter = emitter->_nextEmitter;
40 }
41}
42
43static void CodeHolder_resetInternal(CodeHolder* self, bool releaseMemory) noexcept {
44 // Detach all `CodeEmitter`s.

Callers 1

setLoggerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected