Changeset 27201 in webkit for trunk/JavaScriptCore/kjs/operations.h
- Timestamp:
- Oct 28, 2007, 7:52:04 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/operations.h
r26961 r27201 24 24 #define _KJS_OPERATIONS_H_ 25 25 26 #include <math.h>27 28 26 namespace KJS { 29 27 30 28 class ExecState; 31 29 class JSValue; 32 33 #if PLATFORM(DARWIN)34 inline bool isNaN(double d) { return isnan(d); }35 inline bool isInf(double d) { return isinf(d); }36 inline bool isPosInf(double d) { return isinf(d) && d > 0; }37 inline bool isNegInf(double d) { return isinf(d) && d < 0; }38 #else39 bool isNaN(double d);40 bool isInf(double d);41 bool isPosInf(double d);42 bool isNegInf(double d);43 #endif44 30 45 31 bool equal(ExecState *exec, JSValue *v1, JSValue *v2);
Note:
See TracChangeset
for help on using the changeset viewer.