|
|
| version 1.5, 2013/03/09 22:58:50 | version 1.14, 2026/04/25 13:38:46 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: @b int parser class. | Parser: @b int parser class. |
| Copyright (c) 2001-2012 Art. Lebedev Studio (http://www.artlebedev.com) | Copyright (c) 2001-2026 Art. Lebedev Studio (https://www.artlebedev.com) |
| Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) | Authors: Konstantin Morshnev <moko@design.ru>, Alexandr Petrosian <paf@design.ru> |
| */ | */ |
| #include "classes.h" | #include "classes.h" |
| Line 28 public: | Line 28 public: |
| // global variable | // global variable |
| DECLARE_CLASS_VAR(bool, new MBool, 0); | DECLARE_CLASS_VAR(bool, new MBool); |
| // methods | // methods |
| static void _int(Request& r, MethodParams& params) { | static void _int(Request& r, MethodParams&) { |
| VBool& vbool=GET_SELF(r, VBool); | VBool& vbool=GET_SELF(r, VBool); |
| r.write_no_lang(*new VInt(vbool.as_bool())); | r.write(*new VInt(vbool.as_bool())); |
| } | } |
| static void _double(Request& r, MethodParams& params) { | static void _double(Request& r, MethodParams&) { |
| VBool& vbool=GET_SELF(r, VBool); | VBool& vbool=GET_SELF(r, VBool); |
| r.write_no_lang(*new VDouble(vbool.as_bool())); | r.write(*new VDouble(vbool.as_bool())); |
| } | } |
| static void _bool(Request& r, MethodParams& params) { | static void _bool(Request& r, MethodParams&) { |
| r.write_no_lang(GET_SELF(r, VBool)); | r.write(GET_SELF(r, VBool)); |
| } | } |
| // constructor | // constructor |