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.