// cl_F_As().
// General includes.
-#include "cl_sysdep.h"
+#include "base/cl_sysdep.h"
// Specification.
#include "cln/float.h"
// Implementation.
-#include "cl_N.h"
+#include "base/cl_N.h"
namespace cln {
-inline cl_boolean cl_F_p (const cl_number& x)
+inline bool cl_F_p (const cl_number& x)
{
if (!x.pointer_p())
switch (cl_tag((x).word)) {
#if defined(CL_WIDE_POINTERS)
case cl_FF_tag:
#endif
- return cl_true;
+ return true;
}
else
if (x.heappointer->type->flags & cl_class_flags_subclass_float)
- return cl_true;
- return cl_false;
+ return true;
+ return false;
}
const cl_F& cl_F_As (const cl_number& x, const char * filename, int line)
DeclareType(cl_F,x);
return x;
} else
- cl_as_error(x,"a floating-point number",filename,line);
+ throw as_exception(x,"a floating-point number",filename,line);
}
} // namespace cln