Improved AsmJit public API to not depend on <windows.h> header

This commit is contained in:
kobalicek
2020-04-29 10:22:26 +02:00
parent 13367b59c2
commit 9057aa30b6
68 changed files with 173 additions and 190 deletions

View File

@@ -12,6 +12,11 @@
#include "./asmjit.h"
#include "./asmjit_test_misc.h"
#ifdef _MSC_VER
// Interaction between '_setjmp' and C++ object destruction is non-portable.
#pragma warning(disable: 4611)
#endif
using namespace asmjit;
// ============================================================================
@@ -174,10 +179,11 @@ int X86TestApp::run() {
x86::Compiler cc(&code);
test->compile(cc);
void* func = nullptr;
Error err = errorHandler._err;
if (!err)
err = cc.finalize();
void* func;
#ifndef ASMJIT_NO_LOGGING
if (_dumpAsm) {