Optimize GDScript VM codegen for MSVC
This commit is contained in:
parent
549fcce5f8
commit
9c15e2f24b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue