Diff for /parser3/src/classes/reflection.C between versions 1.30 and 1.33

version 1.30, 2014/06/29 22:55:21 version 1.33, 2015/10/08 22:49:36
Line 193  static void _def(Request& r, MethodParam Line 193  static void _def(Request& r, MethodParam
                 const String& name=params.as_string(1, "name must be string");                  const String& name=params.as_string(1, "name must be string");
                 r.write_no_lang(VBool::get(r.get_class(name)!=0));                  r.write_no_lang(VBool::get(r.get_class(name)!=0));
         } else {          } else {
                 throw Exception(PARSER_RUNTIME, &type, "is invalid type, must be '%s'", def_class);                  throw Exception(PARSER_RUNTIME, &type, "is invalid type, must be '%s'", def_class.cstr());
         }          }
 }  }
   
Line 288  static void _method_info(Request& r, Met Line 288  static void _method_info(Request& r, Met
                 case Method::CT_STATIC:                  case Method::CT_STATIC:
                         call_type=new VString(method_call_type_static);                          call_type=new VString(method_call_type_static);
                         break;                          break;
                   case Method::CT_ANY:
                           break;
         }          }
         if(call_type)          if(call_type)
                 hash->put(method_call_type, call_type);                  hash->put(method_call_type, call_type);
Line 342  static void _uid(Request& r, MethodParam Line 344  static void _uid(Request& r, MethodParam
         char local_buf[MAX_NUMBER];          char local_buf[MAX_NUMBER];
         int size=snprintf(local_buf, sizeof(local_buf), "%p", &obj);          int size=snprintf(local_buf, sizeof(local_buf), "%p", &obj);
   
         r.write_pass_lang(*new String(pa_strdup(local_buf, (size_t)size), String::L_CLEAN, size));          r.write_pass_lang(*new String(String::C(pa_strdup(local_buf, (size_t)size), size)));
 }  }
   
 static void _delete(Request&, MethodParams& params) {  static void _delete(Request&, MethodParams& params) {

Removed from v.1.30  
changed lines
  Added in v.1.33


E-mail: