|
|
| version 1.24, 2002/08/20 09:37:31 | version 1.25, 2002/09/18 08:52:49 |
|---|---|
| Line 41 static void _pos(Request& r, const Strin | Line 41 static void _pos(Request& r, const Strin |
| static void _int(Request& r, const String&, MethodParams *params) { | static void _int(Request& r, const String&, MethodParams *params) { |
| Pool& pool=r.pool(); | Pool& pool=r.pool(); |
| VVoid *vvoid=static_cast<VVoid *>(r.self); | VVoid *vvoid=static_cast<VVoid *>(r.get_self()); |
| r.write_no_lang(*new(pool) VInt(pool, | r.write_no_lang(*new(pool) VInt(pool, |
| params->size()==0?vvoid->as_int():params->as_int(0, "default must be int", r))); | params->size()==0?vvoid->as_int():params->as_int(0, "default must be int", r))); |
| } | } |
| static void _double(Request& r, const String&, MethodParams *params) { | static void _double(Request& r, const String&, MethodParams *params) { |
| Pool& pool=r.pool(); | Pool& pool=r.pool(); |
| VVoid *vvoid=static_cast<VVoid *>(r.self); | VVoid *vvoid=static_cast<VVoid *>(r.get_self()); |
| r.write_no_lang(*new(pool) VDouble(pool, | r.write_no_lang(*new(pool) VDouble(pool, |
| params->size()==0?vvoid->as_double():params->as_double(0, "default must be double", r))); | params->size()==0?vvoid->as_double():params->as_double(0, "default must be double", r))); |
| } | } |