11 #if MANA_BUILD_TARGET == MANA_BUILD_DEBUG
17 #include <string_view>
21 static constexpr
const char* Signature =
"MaNa";
22 static constexpr uint8_t MajorVersion = 0;
23 static constexpr uint8_t MinorVersion = 13;
210 #if MANA_BUILD_TARGET == MANA_BUILD_DEBUG
215 #if MANA_BUILD_TARGET == MANA_BUILD_DEBUG
216 #define MANA_FILE_FORMAT_DEBUG_PARAMETER(code, size) (1 + (size)), (IntermediateLanguage::code)
218 #define MANA_FILE_FORMAT_DEBUG_PARAMETER(code, size) (1 + (size))
223 static constexpr std::array<IntermediateLanguageProperty, static_cast<address_t>(IntermediateLanguageSize)> properties =
352 #if MANA_BUILD_TARGET == MANA_BUILD_DEBUG
353 MANA_ASSERT(property.mIntermediateLanguage == code);
358 #undef MANA_FILE_FORMAT_DEBUG_PARAMETER
362 const uint8_t* program = &
static_cast<const uint8_t*
>(codeBuffer)[index];
367 return sizeof(
address_t) +
sizeof(int16_t) +
sizeof(int16_t) + (program[6] *
sizeof(int16_t));
#define MANA_ASSERT(expression)
Definition: Assert.h:30
Definition: CodeBuffer.cpp:12
std::uint32_t address_t
Definition: Type.h:31
IntermediateLanguage
Definition: FileFormat.h:80
@ DynamicRequestWaitStarting
@ CompareLessEqualInteger
@ CompareGreaterEqualInteger
@ CompareGreaterEqualData
@ DynamicRequestWaitEnded
@ CompareGreaterEqualFloat
const IntermediateLanguageProperty & GetIntermediateLanguageProperty(const IntermediateLanguage code)
Definition: FileFormat.h:221
address_t GetInstructionSize(const void *codeBuffer, const address_t index)
Definition: FileFormat.h:360