Changeset 11525 in webkit for trunk/JavaScriptCore/kjs/value.h
- Timestamp:
- Dec 10, 2005, 4:38:07 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/value.h
r11213 r11525 176 176 AllocatedValueImp *jsNull(); 177 177 178 AllocatedValueImp *jsBoolean(bool = false);178 AllocatedValueImp *jsBoolean(bool); 179 179 180 180 ValueImp *jsNumber(double); 181 181 ValueImp *jsNaN(); 182 ValueImp *jsZero();183 ValueImp *jsOne();184 ValueImp *jsTwo();185 182 186 183 AllocatedValueImp *jsString(const UString &); // returns empty string if passed null string … … 419 416 } 420 417 421 inline ValueImp *jsZero()422 {423 return SimpleNumber::make(0.0);424 }425 426 inline ValueImp *jsOne()427 {428 return SimpleNumber::make(1.0);429 }430 431 inline ValueImp *jsTwo()432 {433 return SimpleNumber::make(2.0);434 }435 436 // compatibility names so we don't have to change so much code437 438 inline AllocatedValueImp *Undefined() { return jsUndefined(); }439 inline AllocatedValueImp *Null() { return jsNull(); }440 inline AllocatedValueImp *Boolean(bool b) { return jsBoolean(b); }441 inline ValueImp *Number(double n) { return jsNumber(n); }442 inline AllocatedValueImp *String(const UString& s) { return jsString(s); }443 inline AllocatedValueImp *String(const char *s) { return jsString(s); }444 445 418 } // namespace 446 419
Note:
See TracChangeset
for help on using the changeset viewer.