Browse Source

Added VS check for GRAVITY_COMPUTED_GOTO

Saša Barišić 8 năm trước cách đây
mục cha
commit
4feec498d8
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      src/shared/gravity_value.h

+ 5 - 0
src/shared/gravity_value.h

@@ -72,6 +72,11 @@
 #define GRAVITY_NULL_SILENT					1			// if 1 then messages sent to null does not produce any runtime error
 #define GRAVITY_MAP_DOTSUGAR				0			// if 1 then map objects can be accessed with both map[key] and map.key
 
+#ifdef _MSC_VER
+#undef GRAVITY_COMPUTED_GOTO
+#define GRAVITY_COMPUTED_GOTO 0 // MSVC does not support it
+#endif
+
 #define MAIN_FUNCTION						"main"
 #define ITERATOR_INIT_FUNCTION				"iterate"
 #define ITERATOR_NEXT_FUNCTION				"next"