11 #if MANA_BUILD_TARGET == MANA_BUILD_DEBUG
16 #include <string_view>
20 static constexpr
const char* Signature =
"MaNa";
21 static constexpr uint8_t MajorVersion = 0;
22 static constexpr uint8_t MinorVersion = 13;
209 #if MANA_BUILD_TARGET == MANA_BUILD_DEBUG
214 #if MANA_BUILD_TARGET == MANA_BUILD_DEBUG
215 #define MANA_FILE_FORMAT_DEBUG_PARAMETER(code, size) (1 + (size)), (IntermediateLanguage::code)
217 #define MANA_FILE_FORMAT_DEBUG_PARAMETER(code, size) (1 + (size))
222 static constexpr std::array<IntermediateLanguageProperty, static_cast<address_t>(IntermediateLanguageSize)> properties =
351 #if MANA_BUILD_TARGET == MANA_BUILD_DEBUG
352 MANA_ASSERT(property.mIntermediateLanguage == code);
357 #undef MANA_FILE_FORMAT_DEBUG_PARAMETER
361 const uint8_t* program = &
static_cast<const uint8_t*
>(codeBuffer)[index];
366 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:30
IntermediateLanguage
Definition: FileFormat.h:79
@ DynamicRequestWaitStarting
@ CompareLessEqualInteger
@ CompareGreaterEqualInteger
@ CompareGreaterEqualData
@ DynamicRequestWaitEnded
@ CompareGreaterEqualFloat
const IntermediateLanguageProperty & GetIntermediateLanguageProperty(const IntermediateLanguage code)
Definition: FileFormat.h:220
address_t GetInstructionSize(const void *codeBuffer, const address_t index)
Definition: FileFormat.h:359