diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2006-10-27 13:34:56 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2006-10-27 13:34:56 +0000 |
commit | 214066a139e6c680e8517c89a07431a9649321a0 (patch) | |
tree | 7d07326c1f6e5bc446f766db0022eaa90c8ea603 /externals/grill/flext/source/flout.cpp | |
parent | 021708ab4cee3245e2306cb107f67d85f00823c1 (diff) |
fix for Codewarrior compilation
update docs
fixed anything/symbol message mixup (thanks to Stefano Papetti)
fixed typos, dates, contact info
added gcc branch hinting
svn path=/trunk/; revision=6170
Diffstat (limited to 'externals/grill/flext/source/flout.cpp')
-rw-r--r-- | externals/grill/flext/source/flout.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/externals/grill/flext/source/flout.cpp b/externals/grill/flext/source/flout.cpp index 3933d5f1..dae256a7 100644 --- a/externals/grill/flext/source/flout.cpp +++ b/externals/grill/flext/source/flout.cpp @@ -20,7 +20,7 @@ WARRANTIES, see the file, "license.txt," in this distribution. void flext_base::ToSysAtom(int n,const t_atom &at) const { outlet *o = GetOut(n); - if(o) { + if(LIKELY(o)) { CRITON(); if(IsSymbol(at)) outlet_symbol((t_outlet *)o,const_cast<t_symbol *>(GetSymbol(at))); @@ -45,12 +45,12 @@ void flext_base::ToSysAtom(int n,const t_atom &at) const #if defined(FLEXT_THREADS) #if FLEXT_QMODE == 2 - #define CHKTHR() ((IsSystemThread() || IsThread(flext::thrmsgid)) && !InDSP()) + #define CHKTHR() (LIKELY((IsSystemThread() || IsThread(flext::thrmsgid)) && !InDSP())) #else - #define CHKTHR() (IsSystemThread() && !InDSP()) + #define CHKTHR() (LIKELY(IsSystemThread() && !InDSP())) #endif #else - #define CHKTHR() (!InDSP()) + #define CHKTHR() (LIKELY(!InDSP())) #endif void flext_base::ToOutBang(int n) const { if(CHKTHR()) ToSysBang(n); else ToQueueBang(n); } |