|
|
| version 1.149, 2004/07/07 16:04:53 | version 1.151, 2005/02/17 14:56:54 |
|---|---|
| Line 757 static void _throw_operator(Request&, Me | Line 757 static void _throw_operator(Request&, Me |
| } | } |
| } | } |
| static void _sleep_operator(Request& r, MethodParams& params) { | |
| double seconds=params.as_double(0, "seconds must be double", r); | |
| pa_sleep((int)trunc(seconds), (int)trunc(seconds*1000)); | |
| } | |
| #if defined(WIN32) && defined(_DEBUG) | #if defined(WIN32) && defined(_DEBUG) |
| # define PA_BPT | # define PA_BPT |
| static void _bpt(Request&, MethodParams&) { | static void _bpt(Request&, MethodParams&) { |
| Line 827 VClassMAIN::VClassMAIN(): VClass() { | Line 832 VClassMAIN::VClassMAIN(): VClass() { |
| // ^throw[type;source;comment] | // ^throw[type;source;comment] |
| add_native_method("throw", Method::CT_ANY, _throw_operator, 1, 3); | add_native_method("throw", Method::CT_ANY, _throw_operator, 1, 3); |
| add_native_method("sleep", Method::CT_ANY, _sleep_operator, 1, 1); | |
| } | } |
| // constructor & configurator | // constructor & configurator |