Add RED4ext logging shim

This commit is contained in:
2026-06-19 21:44:46 -05:00
parent e3c6087738
commit 1de2f4ab46
11 changed files with 219 additions and 0 deletions
@@ -0,0 +1,2 @@
#pragma once
#include <RED4ext/RTTI/ERTTIType.hpp>
@@ -0,0 +1,2 @@
#pragma once
#include <RED4ext/RTTI/IType-inl.hpp>
@@ -0,0 +1,2 @@
#pragma once
#include <RED4ext/RTTI/IType.hpp>
+14
View File
@@ -0,0 +1,14 @@
#pragma once
#include_next <windows.h>
#ifndef _MSC_VER
extern "C" inline char InterlockedExchange8(volatile char* aTarget, char aValue)
{
return __atomic_exchange_n(aTarget, aValue, __ATOMIC_SEQ_CST);
}
extern "C" inline char _InterlockedExchangeAdd8(volatile char* aTarget, char aValue)
{
return __atomic_fetch_add(aTarget, aValue, __ATOMIC_SEQ_CST);
}
#endif