aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flstdc.h
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2006-06-20 00:04:11 +0000
committerThomas Grill <xovo@users.sourceforge.net>2006-06-20 00:04:11 +0000
commite8625781a2763e3a8b1c57362cc5cfb88cfb5a34 (patch)
tree82c4e9ebcc5fa2801eaef1bec8a15083d0ca5cf0 /externals/grill/flext/source/flstdc.h
parente50c649e0e3be83a7aba9729912fd022bf8e56e6 (diff)
more robust structure pack setting for Max/MSP @ Windows
fixed bug for Max/MSP when there's no signal inlet - Max: fixed reported bug (#67), where list elements are distributed over inlets - preprocessor symbol FLEXT_COMPATIBLE - if defined don't implement specialities of either PD or Max/MSP cosmetic changes to calm the compiler svn path=/trunk/; revision=5264
Diffstat (limited to 'externals/grill/flext/source/flstdc.h')
-rw-r--r--externals/grill/flext/source/flstdc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/externals/grill/flext/source/flstdc.h b/externals/grill/flext/source/flstdc.h
index 4d913afe..b993dd96 100644
--- a/externals/grill/flext/source/flstdc.h
+++ b/externals/grill/flext/source/flstdc.h
@@ -251,11 +251,11 @@ typedef t_symbol *t_symptr;
#ifdef FLEXT_DEBUG
#ifdef _MSC_VER
-#define FLEXT_ASSERT(b) (!(b)?_CrtDbgReport(_CRT_ASSERT,__FILE__,__LINE__,"flext",#b):1)
+#define FLEXT_ASSERT(b) do { if(!(b)) _CrtDbgReport(_CRT_ASSERT,__FILE__,__LINE__,"flext",#b); } while(false)
#define FLEXT_WARN(str) _CrtDbgReport(_CRT_WARN,__FILE__,__LINE__,"flext",NULL)
#define FLEXT_ERROR(str) _CrtDbgReport(_CRT_ERROR,__FILE__,__LINE__,"flext",NULL)
#else
-#define FLEXT_ASSERT(b) (!(b)?(error("Assertion failed: " #b " - in " __FILE__ " line %i",(int)__LINE__),0):1)
+#define FLEXT_ASSERT(b) do { if(!(b)) error("Assertion failed: " #b " - in " __FILE__ " line %i",(int)__LINE__); } while(false)
#define FLEXT_WARN(str) error("Warning: in " __FILE__ " line %i",(int)__LINE__)
#define FLEXT_ERROR(str) error("Error: in " __FILE__ " line %i",(int)__LINE__)
#endif