|
|
| version 1.22, 2002/08/15 10:38:18 | version 1.23, 2002/08/20 08:19:00 |
|---|---|
| Line 25 public: // Methoded | Line 25 public: // Methoded |
| // methods | // methods |
| static void _length(Request& r, const String&, MethodParams *params) { | |
| Pool& pool=r.pool(); | |
| r.write_no_lang(*new(pool) VInt(pool, 0)); | |
| } | |
| 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.self); |
| Line 79 static void _sql(Request& r, const Strin | Line 84 static void _sql(Request& r, const Strin |
| // constructor | // constructor |
| MVoid::MVoid(Pool& apool) : Methoded(apool, "void") { | MVoid::MVoid(Pool& apool) : Methoded(apool, "void") { |
| // ^void.length[] | |
| add_native_method("length", Method::CT_DYNAMIC, _length, 0, 0); | |
| // ^void.int[] | // ^void.int[] |
| // ^void.int(default) | // ^void.int(default) |
| add_native_method("int", Method::CT_DYNAMIC, _int, 0, 1); | add_native_method("int", Method::CT_DYNAMIC, _int, 0, 1); |