Optimize GDScript VM codegen for MSVC

This commit is contained in:
Pedro J. Estébanez 2023-08-31 18:38:47 +02:00
parent 549fcce5f8
commit 9c15e2f24b
1 changed files with 6 additions and 0 deletions

View File

@ -397,7 +397,13 @@ void (*type_init_function_table[])(Variant *) = {
#define OPCODES_END
#define OPCODES_OUT
#define DISPATCH_OPCODE continue
#ifdef _MSC_VER
#define OPCODE_SWITCH(m_test) \
__assume(m_test <= OPCODE_END); \
switch (m_test)
#else
#define OPCODE_SWITCH(m_test) switch (m_test)
#endif
#define OPCODE_BREAK break
#define OPCODE_OUT break
#endif