Remove LogManager reference from public FEXCore header

This commit is contained in:
Ryan Houdek authored and Stefanos Kornilios Mitsis Poiitidis committed 2020-03-06 07:55:46 +02:00
1 parent b58b5687e0
commit e510b9e82b
1 file changed
+3 -2
+3 -2
View File
@@ -1,8 +1,8 @@
#pragma once
#include "FEXCore/IR/IR.h"
#include "LogManager.h"
#include <cassert>
#include <cstddef>
#include <cstring>
#include <tuple>
@@ -35,7 +35,8 @@ class IntrusiveAllocator final {
}
void *Allocate(size_t Size) {
LogMan::Throw::A(CheckSize(Size), "Ran out of space in IntrusiveAllocator during allocation");
assert(CheckSize(Size) &&
"Ran out of space in IntrusiveAllocator during allocation");
size_t NewOffset = CurrentOffset + Size;
uintptr_t NewPointer = Data + CurrentOffset;
CurrentOffset = NewOffset;