aboutsummaryrefslogtreecommitdiff
path: root/hidio.h
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2008-05-26 16:39:11 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2008-05-26 16:39:11 +0000
commit71e6d095b72119c5274c744613105f7f676603b9 (patch)
treef523fb2c0651a444688e8f1431d9063513ee632a /hidio.h
parent5b3ac4861336ee5c510d3e554fcf18acad691ebe (diff)
added Pd-stype macros for building for Max/MSP
svn path=/trunk/externals/io/hidio/; revision=9923
Diffstat (limited to 'hidio.h')
-rw-r--r--hidio.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/hidio.h b/hidio.h
index 649a67e..5ec7305 100644
--- a/hidio.h
+++ b/hidio.h
@@ -217,8 +217,7 @@ extern short get_device_number_from_usage(short device_number,
/*==============================================================================
* symbol pointers for pre-generated event symbols
- *==============================================================================
- */
+ *============================================================================*/
extern t_symbol *ps_absolute, *ps_button, *ps_key, *ps_led, *ps_pid, *ps_relative;
@@ -233,4 +232,14 @@ extern void generate_event_symbols();
extern void generate_type_symbols();
+/*==============================================================================
+ * macros for compiling for Max/MSP using the Pd API
+ *============================================================================*/
+
+#ifndef PD /* Max */
+# define SETSYMBOL(atom, s) atom_setsym(atom, s)
+# define SETFLOAT(atom, f) atom_setlong(atom, (long)f)
+#endif /* NOT PD */
+
+
#endif /* NOT _HIDIO_H */