rodecomp/Source/Utility/Async/AsyncDiagnostic.h
ragnarok-clanker 1d0e5dc05e Maintenance: Add mandatory field offset markers /* XXXX */ and assertions to Utility headers (Async, Math, Threading)
Batch #1057 by ragnarok-clanker: no function's compiled code changes; checked with 75 compiled unit(s), including every includer of Source/Utility/Async/AsyncDiagnostic.h, Source/Utility/Async/NAsyncWorkQueue.h, Source/Utility/Async/NMessageQueue.h, Source/Utility/Async/NRecycleObjectPoolMgr.h, Source/Utility/Math/AffineMatrix.h, Source/Utility/Threading/CSyncObject.h, Source/Utility/Threading/NSyncObject.h.
2026-10-27 13:40:06 +00:00

26 lines
783 B
C++

#ifndef RAGNAROK_SOURCE_UTILITY_ASYNC_ASYNCDIAGNOSTIC_H
#define RAGNAROK_SOURCE_UTILITY_ASYNC_ASYNCDIAGNOSTIC_H
#include <cstddef>
#include <cstdint>
#include <string>
struct AsyncDiagnostic {
AsyncDiagnostic(const bool* success, std::string* message, const char* file, const std::uint32_t* line);
~AsyncDiagnostic();
AsyncDiagnostic& MoveFrom(AsyncDiagnostic& other);
/* 0000 */ std::uint32_t line;
/* 0004 */ std::string file;
/* 001C */ std::string message;
/* 0034 */ bool success;
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(AsyncDiagnostic) == 56);
static_assert(offsetof(AsyncDiagnostic, file) == 4);
static_assert(offsetof(AsyncDiagnostic, message) == 0x001C);
static_assert(offsetof(AsyncDiagnostic, success) == 0x0034);
#endif
#endif