Skip to content

Commit

Permalink
Merge pull request #81200 from RandomShaper/gd_vm_msvc
Browse files Browse the repository at this point in the history
Optimize GDScript VM codegen for MSVC
  • Loading branch information
akien-mga committed Sep 25, 2023
2 parents cd39da2 + 9c15e2f commit 7a29189
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 @@ -398,7 +398,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 7a29189

Please sign in to comment.