summaryrefslogtreecommitdiffstatshomepage
path: root/trunk/src/emu/deprecat.h
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/emu/deprecat.h')
-rw-r--r--trunk/src/emu/deprecat.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/trunk/src/emu/deprecat.h b/trunk/src/emu/deprecat.h
new file mode 100644
index 00000000000..924f1c98631
--- /dev/null
+++ b/trunk/src/emu/deprecat.h
@@ -0,0 +1,53 @@
+/***************************************************************************
+
+ deprecat.h
+
+ Definition of derprecated and obsolte constructs that should not
+ be used by new code, if at all possible.
+
+ Copyright Nicola Salmoria and the MAME Team.
+ Visit http://mamedev.org for licensing and usage restrictions.
+
+***************************************************************************/
+
+#pragma once
+
+#ifndef __DEPRECAT_H__
+#define __DEPRECAT_H__
+
+
+/*************************************
+ *
+ * Old way of allowing "VBLANK"
+ * interrupts to fire more than once
+ * a frame.
+ *
+ * These should be replaced with
+ * scanline based interrupts as
+ * it makes no sense to have more
+ * than one VBLANK interrupt
+ * per frame.
+ *
+ *************************************/
+
+#define MCFG_CPU_VBLANK_INT_HACK(_func, _rate) \
+ device_execute_interface::static_set_vblank_int(*device, _func, NULL, _rate); \
+
+
+
+/*************************************
+ *
+ * Core timing
+ *
+ *************************************/
+
+/* Returns the number of times the interrupt handler will be called before
+ the end of the current video frame. This is can be useful to interrupt
+ handlers to synchronize their operation. If you call this from outside
+ an interrupt handler, add 1 to the result, i.e. if it returns 0, it means
+ that the interrupt handler will be called once. */
+#define cpu_getiloops(dev) device_execute(dev)->iloops()
+
+
+
+#endif /* __DEPRECAT_H__ */