summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/vm_core.h b/vm_core.h
index 7bf199b68a..b5c1bf0ad9 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -106,6 +106,12 @@
#define UNLIKELY(x) (x)
#endif /* __GNUC__ >= 3 */
+#if __GNUC__ >= 3
+#define UNINITIALIZED_VAR(x) x = x
+#else
+#define UNINITIALIZED_VAR(x) x
+#endif
+
typedef unsigned long rb_num_t;
/* iseq data type */