|
|
| version 1.2, 2001/03/12 17:00:46 | version 1.4, 2001/03/12 18:13:48 |
|---|---|
| Line 27 static void set_or_load( | Line 27 static void set_or_load( |
| Pool& pool=r.pool(); | Pool& pool=r.pool(); |
| // data is last parameter | // data is last parameter |
| Value *vdata=static_cast<Value *>(params->get(params->size()-1)); | Value *vdata=static_cast<Value *>(params->get(params->size()-1)); |
| if(vdata->get_junction()) | // forcing |
| R_THROW(0, 0, | // [this param type] |
| &method_name, | // [this param type] |
| "body must not be a junction"); | r.fail_if_junction_(true, *vdata, |
| method_name, "body must not be a junction"); | |
| // data or file_name | // data or file_name |
| char *data_or_filename=vdata->as_string().cstr(); | char *data_or_filename=vdata->as_string().cstr(); |