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/flxlet.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/flxlet.cpp')
-rwxr-xr-x | externals/grill/flext/source/flxlet.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/externals/grill/flext/source/flxlet.cpp b/externals/grill/flext/source/flxlet.cpp index 6aeea303..9fa9486a 100755 --- a/externals/grill/flext/source/flxlet.cpp +++ b/externals/grill/flext/source/flxlet.cpp @@ -38,7 +38,7 @@ void flext_base::xlet::Desc(const char *c) void flext_base::AddInlet(xlettype tp,int mult,const char *desc) { - if(incnt+mult >= MAXLETS) + if(UNLIKELY(incnt+mult >= MAXLETS)) post("%s - too many inlets",thisName()); else for(int i = 0; i < mult; ++i) { @@ -50,7 +50,7 @@ void flext_base::AddInlet(xlettype tp,int mult,const char *desc) void flext_base::AddOutlet(xlettype tp,int mult,const char *desc) { - if(outcnt+mult >= MAXLETS) + if(UNLIKELY(outcnt+mult >= MAXLETS)) post("%s - too many outlets",thisName()); else for(int i = 0; i < mult; ++i) { @@ -62,7 +62,7 @@ void flext_base::AddOutlet(xlettype tp,int mult,const char *desc) void flext_base::DescInlet(int ix,const char *d) { - if(ix >= incnt) + if(UNLIKELY(ix >= incnt)) post("%s - inlet %i not found",thisName(),ix); else inlist[ix].Desc(d); @@ -70,7 +70,7 @@ void flext_base::DescInlet(int ix,const char *d) void flext_base::DescOutlet(int ix,const char *d) { - if(ix >= outcnt) + if(UNLIKELY(ix >= incnt)) post("%s - outlet %i not found",thisName(),ix); else outlist[ix].Desc(d); |