comparison libinterp/operators/ops.h @ 21120:499b851fbfae

Replace pattern if/err_XXX/else/code with if/err_XXX/ code. * schur.cc, ov-complex.h, ov-cx-mat.cc, ov-cx-sparse.cc, ov-float.h, ov-flt-complex.h, ov-flt-cx-mat.cc, ov-flt-re-mat.cc, ov-range.cc, ov-re-mat.cc, ov-re-sparse.cc, ov-scalar.h, ov-str-mat.cc, ops.h, pt-idx.cc, Array.cc, CColVector.cc, CMatrix.cc, CRowVector.cc, MSparse.cc, PermMatrix.cc, Sparse.cc, dColVector.cc, dMatrix.cc, dRowVector.cc, dSparse.cc, fCColVector.cc, fCMatrix.cc, fCRowVector.cc, fColVector.cc, fMatrix.cc, fRowVector.cc: Replace pattern if/err_XXX/else/code with if/err_XXX/ code.
author Rik <rik@octave.org>
date Wed, 20 Jan 2016 16:58:59 -0800
parents e39e05d90788
children 228b65504557
comparison
equal deleted inserted replaced
21119:90cd0f9442d5 21120:499b851fbfae
300 BINOPDECL (name, a1, a2) \ 300 BINOPDECL (name, a1, a2) \
301 { \ 301 { \
302 CAST_BINOP_ARGS (const CONCAT2(octave_, t1)&, const CONCAT2(octave_, t2)&); \ 302 CAST_BINOP_ARGS (const CONCAT2(octave_, t1)&, const CONCAT2(octave_, t2)&); \
303 if (xisnan (v1.CONCAT2(t1, _value) ()) || xisnan (v2.CONCAT2(t2, _value) ())) \ 303 if (xisnan (v1.CONCAT2(t1, _value) ()) || xisnan (v2.CONCAT2(t2, _value) ())) \
304 err_nan_to_logical_conversion (); \ 304 err_nan_to_logical_conversion (); \
305 else \ 305 \
306 return octave_value \ 306 return octave_value \
307 (v1.CONCAT2(t1, _value) () op v2.CONCAT2(t2, _value) ()); \ 307 (v1.CONCAT2(t1, _value) () op v2.CONCAT2(t2, _value) ()); \
308 } 308 }
309 309
310 #define DEFNDBINOP_OP(name, t1, t2, e1, e2, op) \ 310 #define DEFNDBINOP_OP(name, t1, t2, e1, e2, op) \
311 BINOPDECL (name, a1, a2) \ 311 BINOPDECL (name, a1, a2) \
312 { \ 312 { \