Skip to content

Commit

Permalink
Optimize GDScript VM codegen for MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomShaper committed Sep 25, 2023
1 parent 549fcce commit 9c15e2f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/gdscript/gdscript_vm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9c15e2f

Please sign in to comment.