[PD-cvs] SF.net SVN: pure-data: [9923] trunk/externals/io/hidio/hidio.h
eighthave at users.sourceforge.net
eighthave at users.sourceforge.net
Mon May 26 18:39:12 CEST 2008
Revision: 9923
http://pure-data.svn.sourceforge.net/pure-data/?rev=9923&view=rev
Author: eighthave
Date: 2008-05-26 09:39:11 -0700 (Mon, 26 May 2008)
Log Message:
-----------
added Pd-stype macros for building for Max/MSP
Modified Paths:
--------------
trunk/externals/io/hidio/hidio.h
Modified: trunk/externals/io/hidio/hidio.h
===================================================================
--- trunk/externals/io/hidio/hidio.h 2008-05-26 16:05:40 UTC (rev 9922)
+++ trunk/externals/io/hidio/hidio.h 2008-05-26 16:39:11 UTC (rev 9923)
@@ -217,8 +217,7 @@
/*==============================================================================
* 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_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 */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Pd-cvs
mailing list