Mercurial > hg > octave-nkf
diff liboctave/lo-mappers.h @ 7922:935be827eaf8
error for NaN values in & and | expressions
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 11 Jul 2008 14:56:30 -0400 |
parents | 82be108cc558 |
children | eb63fbe60fab |
line wrap: on
line diff
--- a/liboctave/lo-mappers.h +++ b/liboctave/lo-mappers.h @@ -42,6 +42,10 @@ extern OCTAVE_API Complex xlog2 (const Complex& x, int& exp); extern OCTAVE_API double xexp2 (double x); +// These are used by the BOOL_OP macros in mx-op-defs.h. +inline bool xisnan (bool) { return false; } +inline bool xisnan (char) { return false; } + extern OCTAVE_API bool xisnan (double x); extern OCTAVE_API bool xfinite (double x); extern OCTAVE_API bool xisinf (double x);