您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ throw_instance_method_fatal函数代码示例

51自学网 2021-06-03 08:49:37
  C++
这篇教程C++ throw_instance_method_fatal函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中throw_instance_method_fatal函数的典型用法代码示例。如果您正苦于以下问题:C++ throw_instance_method_fatal函数的具体用法?C++ throw_instance_method_fatal怎么用?C++ throw_instance_method_fatal使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了throw_instance_method_fatal函数的30个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: methodWrapper

TypedValue* methodWrapper(ActRec* ar) {  auto func = ar->m_func;  auto numArgs = func->numParams();  auto numNonDefault = ar->numArgs();  bool isStatic = func->isStatic();  assert(!func->hasVariadicCaptureParam());  TypedValue* args = ((TypedValue*)ar) - 1;  TypedValue rv;  rv.m_type = KindOfNull;  if (LIKELY(numNonDefault == numArgs) ||      LIKELY(nativeWrapperCheckArgs(ar))) {    if (coerceFCallArgs(args, numArgs, numNonDefault, func)) {      // Prepend a context arg for methods      // KindOfClass when it's being called statically Foo::bar()      // KindOfObject when it's being called on an instance $foo->bar()      TypedValue ctx;      if (ar->hasThis()) {        if (isStatic) {          throw_instance_method_fatal(getInvokeName(ar)->data());        }        ctx.m_type = KindOfObject;        ctx.m_data.pobj = ar->getThis();      } else {        if (!isStatic) {          throw_instance_method_fatal(getInvokeName(ar)->data());        }        ctx.m_type = KindOfClass;        ctx.m_data.pcls = const_cast<Class*>(ar->getClass());      }      callFunc(func, &ctx, args, numArgs, rv);    } else if (func->attrs() & AttrParamCoerceModeFalse) {      rv.m_type = KindOfBoolean;      rv.m_data.num = 0;    }  }  assert(rv.m_type != KindOfUninit);  if (isStatic) {    frame_free_locals_no_this_inl(ar, func->numLocals(), &rv);  } else {    frame_free_locals_inl(ar, func->numLocals(), &rv);  }  tvCopy(rv, ar->m_r);  return &ar->m_r;}
开发者ID:isgiker,项目名称:hhvm,代码行数:48,


示例2: tg_16EncodingDetector_detectAll

TypedValue* tg_16EncodingDetector_detectAll(HPHP::VM::ActRec *ar) {    TypedValue rv;    int64_t count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    ObjectData* this_ = (ar->hasThis() ? ar->getThis() : NULL);    if (this_) {      if (count == 0LL) {        rv.m_type = KindOfArray;        th_16EncodingDetector_detectAll((&rv.m_data), (this_));        if (rv.m_data.num == 0LL) rv.m_type = KindOfNull;        frame_free_locals_inl(ar, 0);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      } else {        throw_toomany_arguments_nr("EncodingDetector::detectAll", 0, 1);      }    } else {      throw_instance_method_fatal("EncodingDetector::detectAll");    }    rv.m_data.num = 0LL;    rv.m_type = KindOfNull;    frame_free_locals_inl(ar, 0);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  return &ar->m_r;}
开发者ID:ChrisOHu,项目名称:hiphop-php,代码行数:26,


示例3: tg_10WaitHandle_getWaitHandle

TypedValue* tg_10WaitHandle_getWaitHandle(HPHP::VM::ActRec *ar) {    TypedValue rv;    int64_t count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    ObjectData* this_ = (ar->hasThis() ? ar->getThis() : NULL);    if (this_) {      if (count == 0LL) {        rv.m_type = KindOfObject;        th_10WaitHandle_getWaitHandle((Value*)(&(rv)), (this_));        if (rv.m_data.num == 0LL) rv.m_type = KindOfNull;        frame_free_locals_inl(ar, 0);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      } else {        throw_toomany_arguments_nr("WaitHandle::getWaitHandle", 0, 1);      }    } else {      throw_instance_method_fatal("WaitHandle::getWaitHandle");    }    rv.m_data.num = 0LL;    rv.m_type = KindOfNull;    frame_free_locals_inl(ar, 0);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  return &ar->m_r;}
开发者ID:JustProgrammer,项目名称:hiphop-php,代码行数:26,


示例4: tg_12SpoofChecker___construct

TypedValue* tg_12SpoofChecker___construct(HPHP::VM::ActRec *ar) {    TypedValue rv;    int64_t count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    ObjectData* this_ = (ar->hasThis() ? ar->getThis() : NULL);    if (this_) {      if (count == 0LL) {        rv.m_data.num = 0LL;        rv._count = 0;        rv.m_type = KindOfNull;        th_12SpoofChecker___construct((this_));        frame_free_locals_inl(ar, 0);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      } else {        throw_toomany_arguments_nr("SpoofChecker::__construct", 0, 1);      }    } else {      throw_instance_method_fatal("SpoofChecker::__construct");    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_inl(ar, 0);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  return &ar->m_r;}
开发者ID:BauerBox,项目名称:hiphop-php,代码行数:28,


示例5: tg_17DummyContinuation_key

TypedValue* tg_17DummyContinuation_key(HPHP::VM::ActRec *ar) {    TypedValue rv;    int64_t count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    ObjectData* this_ = (ar->hasThis() ? ar->getThis() : NULL);    if (this_) {      if (count == 0LL) {        rv.m_type = KindOfInt64;        rv.m_data.num = (int64_t)th_17DummyContinuation_key((this_));        frame_free_locals_inl(ar, 0);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      } else {        throw_toomany_arguments_nr("DummyContinuation::key", 0, 1);      }    } else {      throw_instance_method_fatal("DummyContinuation::key");    }    rv.m_data.num = 0LL;    rv.m_type = KindOfNull;    frame_free_locals_inl(ar, 0);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  return &ar->m_r;}
开发者ID:ChrisOHu,项目名称:hiphop-php,代码行数:25,


示例6: tg_12Continuation_get_arg

TypedValue* tg_12Continuation_get_arg(HPHP::VM::ActRec *ar) {    TypedValue rv;    int64_t count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    ObjectData* this_ = (ar->hasThis() ? ar->getThis() : NULL);    if (this_) {      if (count == 1LL) {        if ((args-0)->m_type == KindOfInt64) {          th_12Continuation_get_arg((&(rv)), (this_), (long)(args[-0].m_data.num));          if (rv.m_type == KindOfUninit) rv.m_type = KindOfNull;          frame_free_locals_inl(ar, 1);          memcpy(&ar->m_r, &rv, sizeof(TypedValue));          return &ar->m_r;        } else {          tg1_12Continuation_get_arg(&rv, ar, count , this_);          frame_free_locals_inl(ar, 1);          memcpy(&ar->m_r, &rv, sizeof(TypedValue));          return &ar->m_r;        }      } else {        throw_wrong_arguments_nr("Continuation::get_arg", count, 1, 1, 1);      }    } else {      throw_instance_method_fatal("Continuation::get_arg");    }    rv.m_data.num = 0LL;    rv.m_type = KindOfNull;    frame_free_locals_inl(ar, 1);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  return &ar->m_r;}
开发者ID:ChrisOHu,项目名称:hiphop-php,代码行数:32,


示例7: tg_12DateTimeZone_getTransitions

TypedValue* tg_12DateTimeZone_getTransitions(HPHP::VM::ActRec *ar) {    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    ObjectData* this_ = (ar->hasThis() ? ar->getThis() : NULL);    if (this_) {      if (count == 0LL) {        rv._count = 0;        rv.m_type = KindOfArray;        th_12DateTimeZone_getTransitions((Value*)(&(rv)), (this_));        if (rv.m_data.num == 0LL) rv.m_type = KindOfNull;        frame_free_locals_inl(ar, 0);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      } else {        throw_toomany_arguments_nr("DateTimeZone::getTransitions", 0, 1);      }    } else {      throw_instance_method_fatal("DateTimeZone::getTransitions");    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_inl(ar, 0);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  return &ar->m_r;}
开发者ID:dineshkummarc,项目名称:hiphop-php,代码行数:28,


示例8: tg_8DateTime_setTime

TypedValue* tg_8DateTime_setTime(HPHP::VM::ActRec *ar) {    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    ObjectData* this_ = (ar->hasThis() ? ar->getThis() : NULL);    if (this_) {      if (count >= 2LL && count <= 3LL) {        if ((count <= 2 || (args-2)->m_type == KindOfInt64) && (args-1)->m_type == KindOfInt64 && (args-0)->m_type == KindOfInt64) {          rv._count = 0;          rv.m_type = KindOfObject;          th_8DateTime_setTime((Value*)(&(rv)), (this_), (long long)(args[-0].m_data.num), (long long)(args[-1].m_data.num), (count > 2) ? (long long)(args[-2].m_data.num) : (long long)(0));          if (rv.m_data.num == 0LL) rv.m_type = KindOfNull;          frame_free_locals_inl(ar, 3);          memcpy(&ar->m_r, &rv, sizeof(TypedValue));          return &ar->m_r;        } else {          tg1_8DateTime_setTime(&rv, ar, count , this_);          frame_free_locals_inl(ar, 3);          memcpy(&ar->m_r, &rv, sizeof(TypedValue));          return &ar->m_r;        }      } else {        throw_wrong_arguments_nr("DateTime::setTime", count, 2, 3, 1);      }    } else {      throw_instance_method_fatal("DateTime::setTime");    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_inl(ar, 3);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  return &ar->m_r;}
开发者ID:dineshkummarc,项目名称:hiphop-php,代码行数:35,


示例9: tg_13SQLite3Result_fetcharray

TypedValue* tg_13SQLite3Result_fetcharray(ActRec* ar) {  TypedValue rvSpace;  TypedValue* rv = &rvSpace;  int32_t count = ar->numArgs();  TypedValue* args UNUSED = ((TypedValue*)ar) - 1;  ObjectData* this_ = (ar->hasThis() ? ar->getThis() : nullptr);  if (this_) {    if (count <= 1) {      if ((count <= 0 || (args - 0)->m_type == KindOfInt64)) {        th_13SQLite3Result_fetcharray(rv, (this_), (count > 0) ? (long)(args[-0].m_data.num) : (long)(k_SQLITE3_BOTH));        if (rv->m_type == KindOfUninit) rv->m_type = KindOfNull;      } else {        tg1_13SQLite3Result_fetcharray(rv, ar, count, this_);      }    } else {      throw_toomany_arguments_nr("SQLite3Result::fetcharray", 1, 1);      rv->m_data.num = 0LL;      rv->m_type = KindOfNull;    }  } else {    throw_instance_method_fatal("SQLite3Result::fetcharray");  }  frame_free_locals_inl(ar, 1);  memcpy(&ar->m_r, rv, sizeof(TypedValue));  return &ar->m_r;}
开发者ID:7755373049,项目名称:hiphop-php,代码行数:26,


示例10: tg_13SQLite3Result_columnname

TypedValue* tg_13SQLite3Result_columnname(ActRec* ar) {  TypedValue rvSpace;  TypedValue* rv = &rvSpace;  int32_t count = ar->numArgs();  TypedValue* args UNUSED = ((TypedValue*)ar) - 1;  ObjectData* this_ = (ar->hasThis() ? ar->getThis() : nullptr);  if (this_) {    if (count == 1) {      if ((args - 0)->m_type == KindOfInt64) {        rv->m_type = KindOfString;        th_13SQLite3Result_columnname(&(rv->m_data), (this_), (long)(args[-0].m_data.num));        if (rv->m_data.num == 0LL) rv->m_type = KindOfNull;      } else {        tg1_13SQLite3Result_columnname(rv, ar, count, this_);      }    } else {      throw_wrong_arguments_nr("SQLite3Result::columnname", count, 1, 1, 1);      rv->m_data.num = 0LL;      rv->m_type = KindOfNull;    }  } else {    throw_instance_method_fatal("SQLite3Result::columnname");  }  frame_free_locals_inl(ar, 1);  memcpy(&ar->m_r, rv, sizeof(TypedValue));  return &ar->m_r;}
开发者ID:7755373049,项目名称:hiphop-php,代码行数:27,


示例11: tg_12Continuation_getOrigFuncName

TypedValue* tg_12Continuation_getOrigFuncName(HPHP::VM::ActRec *ar) {  EXCEPTION_GATE_ENTER();    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    ObjectData* this_ = (ar->hasThis() ? ar->getThis() : NULL);    if (this_) {      if (count == 0LL) {        rv._count = 0;        rv.m_type = KindOfString;        th_12Continuation_getOrigFuncName((Value*)(&(rv)), (this_));        if (rv.m_data.num == 0LL) rv.m_type = KindOfNull;        frame_free_locals_inl(ar, 0);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      } else {        throw_toomany_arguments_nr("Continuation::getOrigFuncName", 0, 1);      }    } else {      throw_instance_method_fatal("Continuation::getOrigFuncName");    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_inl(ar, 0);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  EXCEPTION_GATE_RETURN(&ar->m_r);}
开发者ID:KWMalik,项目名称:hiphop-php,代码行数:29,


示例12: tg_12Continuation_send

TypedValue* tg_12Continuation_send(HPHP::VM::ActRec *ar) {  EXCEPTION_GATE_ENTER();    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    ObjectData* this_ = (ar->hasThis() ? ar->getThis() : NULL);    if (this_) {      if (count == 1LL) {        rv.m_data.num = 0LL;        rv._count = 0;        rv.m_type = KindOfNull;        th_12Continuation_send((this_), (args-0));        frame_free_locals_inl(ar, 1);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      } else {        throw_wrong_arguments_nr("Continuation::send", count, 1, 1, 1);      }    } else {      throw_instance_method_fatal("Continuation::send");    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_inl(ar, 1);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  EXCEPTION_GATE_RETURN(&ar->m_r);}
开发者ID:KWMalik,项目名称:hiphop-php,代码行数:29,


示例13: tg_17DummyContinuation_valid

TypedValue* tg_17DummyContinuation_valid(HPHP::VM::ActRec *ar) {  EXCEPTION_GATE_ENTER();    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    ObjectData* this_ = (ar->hasThis() ? ar->getThis() : NULL);    if (this_) {      if (count == 0LL) {        rv._count = 0;        rv.m_type = KindOfBoolean;        rv.m_data.num = (th_17DummyContinuation_valid((this_))) ? 1LL : 0LL;        frame_free_locals_inl(ar, 0);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      } else {        throw_toomany_arguments_nr("DummyContinuation::valid", 0, 1);      }    } else {      throw_instance_method_fatal("DummyContinuation::valid");    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_inl(ar, 0);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  EXCEPTION_GATE_RETURN(&ar->m_r);}
开发者ID:KWMalik,项目名称:hiphop-php,代码行数:28,


示例14: tg_16EncodingDetector_setText

TypedValue* tg_16EncodingDetector_setText(HPHP::VM::ActRec *ar) {    TypedValue rv;    int64_t count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    ObjectData* this_ = (ar->hasThis() ? ar->getThis() : NULL);    if (this_) {      if (count == 1LL) {        if (IS_STRING_TYPE((args-0)->m_type)) {          rv.m_data.num = 0LL;          rv.m_type = KindOfNull;          th_16EncodingDetector_setText((this_), &args[-0].m_data);          frame_free_locals_inl(ar, 1);          memcpy(&ar->m_r, &rv, sizeof(TypedValue));          return &ar->m_r;        } else {          tg1_16EncodingDetector_setText(&rv, ar, count , this_);          frame_free_locals_inl(ar, 1);          memcpy(&ar->m_r, &rv, sizeof(TypedValue));          return &ar->m_r;        }      } else {        throw_wrong_arguments_nr("EncodingDetector::setText", count, 1, 1, 1);      }    } else {      throw_instance_method_fatal("EncodingDetector::setText");    }    rv.m_data.num = 0LL;    rv.m_type = KindOfNull;    frame_free_locals_inl(ar, 1);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  return &ar->m_r;}
开发者ID:ChrisOHu,项目名称:hiphop-php,代码行数:33,


示例15: tg_13EncodingMatch_isValid

TypedValue* tg_13EncodingMatch_isValid(HPHP::VM::ActRec *ar) {    TypedValue rv;    int64_t count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    ObjectData* this_ = (ar->hasThis() ? ar->getThis() : NULL);    if (this_) {      if (count == 0LL) {        rv.m_type = KindOfBoolean;        rv.m_data.num = (th_13EncodingMatch_isValid((this_))) ? 1LL : 0LL;        frame_free_locals_inl(ar, 0);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      } else {        throw_toomany_arguments_nr("EncodingMatch::isValid", 0, 1);      }    } else {      throw_instance_method_fatal("EncodingMatch::isValid");    }    rv.m_data.num = 0LL;    rv.m_type = KindOfNull;    frame_free_locals_inl(ar, 0);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  return &ar->m_r;}
开发者ID:ChrisOHu,项目名称:hiphop-php,代码行数:25,


示例16: tg_11SQLite3Stmt_bindvalue

TypedValue* tg_11SQLite3Stmt_bindvalue(ActRec* ar) {  TypedValue rvSpace;  TypedValue* rv = &rvSpace;  int32_t count = ar->numArgs();  TypedValue* args UNUSED = ((TypedValue*)ar) - 1;  ObjectData* this_ = (ar->hasThis() ? ar->getThis() : nullptr);  if (this_) {    if (count >= 2 && count <= 3) {      if ((count <= 2 || (args - 2)->m_type == KindOfInt64)) {        rv->m_type = KindOfBoolean;        rv->m_data.num = (th_11SQLite3Stmt_bindvalue((this_), (args-0), (args-1), (count > 2) ? (long)(args[-2].m_data.num) : (long)(k_SQLITE3_TEXT))) ? 1LL : 0LL;      } else {        tg1_11SQLite3Stmt_bindvalue(rv, ar, count, this_);      }    } else {      throw_wrong_arguments_nr("SQLite3Stmt::bindvalue", count, 2, 3, 1);      rv->m_data.num = 0LL;      rv->m_type = KindOfNull;    }  } else {    throw_instance_method_fatal("SQLite3Stmt::bindvalue");  }  frame_free_locals_inl(ar, 3);  memcpy(&ar->m_r, rv, sizeof(TypedValue));  return &ar->m_r;}
开发者ID:7755373049,项目名称:hiphop-php,代码行数:26,


示例17: tg_8DateTime_modify

TypedValue* tg_8DateTime_modify(HPHP::VM::ActRec *ar) {    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    ObjectData* this_ = (ar->hasThis() ? ar->getThis() : NULL);    if (this_) {      if (count == 1LL) {        if (IS_STRING_TYPE((args-0)->m_type)) {          rv._count = 0;          rv.m_type = KindOfObject;          th_8DateTime_modify((Value*)(&(rv)), (this_), (Value*)(args-0));          if (rv.m_data.num == 0LL) rv.m_type = KindOfNull;          frame_free_locals_inl(ar, 1);          memcpy(&ar->m_r, &rv, sizeof(TypedValue));          return &ar->m_r;        } else {          tg1_8DateTime_modify(&rv, ar, count , this_);          frame_free_locals_inl(ar, 1);          memcpy(&ar->m_r, &rv, sizeof(TypedValue));          return &ar->m_r;        }      } else {        throw_wrong_arguments_nr("DateTime::modify", count, 1, 1, 1);      }    } else {      throw_instance_method_fatal("DateTime::modify");    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_inl(ar, 1);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  return &ar->m_r;}
开发者ID:dineshkummarc,项目名称:hiphop-php,代码行数:35,


示例18: tg_7SQLite3_busytimeout

TypedValue* tg_7SQLite3_busytimeout(ActRec* ar) {  TypedValue rvSpace;  TypedValue* rv = &rvSpace;  int32_t count = ar->numArgs();  TypedValue* args UNUSED = ((TypedValue*)ar) - 1;  ObjectData* this_ = (ar->hasThis() ? ar->getThis() : nullptr);  if (this_) {    if (count == 1) {      if ((args - 0)->m_type == KindOfInt64) {        rv->m_type = KindOfBoolean;        rv->m_data.num = (th_7SQLite3_busytimeout((this_), (long)(args[-0].m_data.num))) ? 1LL : 0LL;      } else {        tg1_7SQLite3_busytimeout(rv, ar, count, this_);      }    } else {      throw_wrong_arguments_nr("SQLite3::busytimeout", count, 1, 1, 1);      rv->m_data.num = 0LL;      rv->m_type = KindOfNull;    }  } else {    throw_instance_method_fatal("SQLite3::busytimeout");  }  frame_free_locals_inl(ar, 1);  memcpy(&ar->m_r, rv, sizeof(TypedValue));  return &ar->m_r;}
开发者ID:7755373049,项目名称:hiphop-php,代码行数:26,


示例19: tg_12DateTimeZone_getOffset

TypedValue* tg_12DateTimeZone_getOffset(HPHP::VM::ActRec *ar) {    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    ObjectData* this_ = (ar->hasThis() ? ar->getThis() : NULL);    if (this_) {      if (count == 1LL) {        if ((args-0)->m_type == KindOfObject) {          rv._count = 0;          rv.m_type = KindOfInt64;          rv.m_data.num = (long long)th_12DateTimeZone_getOffset((this_), (Value*)(args-0));          frame_free_locals_inl(ar, 1);          memcpy(&ar->m_r, &rv, sizeof(TypedValue));          return &ar->m_r;        } else {          tg1_12DateTimeZone_getOffset(&rv, ar, count , this_);          frame_free_locals_inl(ar, 1);          memcpy(&ar->m_r, &rv, sizeof(TypedValue));          return &ar->m_r;        }      } else {        throw_wrong_arguments_nr("DateTimeZone::getOffset", count, 1, 1, 1);      }    } else {      throw_instance_method_fatal("DateTimeZone::getOffset");    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_inl(ar, 1);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  return &ar->m_r;}
开发者ID:dineshkummarc,项目名称:hiphop-php,代码行数:34,


示例20: tg_7SQLite3_prepare

TypedValue* tg_7SQLite3_prepare(ActRec* ar) {  TypedValue rvSpace;  TypedValue* rv = &rvSpace;  int32_t count = ar->numArgs();  TypedValue* args UNUSED = ((TypedValue*)ar) - 1;  ObjectData* this_ = (ar->hasThis() ? ar->getThis() : nullptr);  if (this_) {    if (count == 1) {      if (IS_STRING_TYPE((args - 0)->m_type)) {        th_7SQLite3_prepare(rv, (this_), &args[-0].m_data);        if (rv->m_type == KindOfUninit) rv->m_type = KindOfNull;      } else {        tg1_7SQLite3_prepare(rv, ar, count, this_);      }    } else {      throw_wrong_arguments_nr("SQLite3::prepare", count, 1, 1, 1);      rv->m_data.num = 0LL;      rv->m_type = KindOfNull;    }  } else {    throw_instance_method_fatal("SQLite3::prepare");  }  frame_free_locals_inl(ar, 1);  memcpy(&ar->m_r, rv, sizeof(TypedValue));  return &ar->m_r;}
开发者ID:7755373049,项目名称:hiphop-php,代码行数:26,


示例21: tg_12Continuation___construct

TypedValue* tg_12Continuation___construct(HPHP::VM::ActRec *ar) {    TypedValue rv;    int64_t count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    ObjectData* this_ = (ar->hasThis() ? ar->getThis() : NULL);    if (this_) {      if (count >= 2LL && count <= 4LL) {        if ((count <= 3 || (args-3)->m_type == KindOfArray) && IS_STRING_TYPE((args-1)->m_type) && (args-0)->m_type == KindOfInt64) {          rv.m_data.num = 0LL;          rv.m_type = KindOfNull;          Variant defVal2;          th_12Continuation___construct((this_), (long)(args[-0].m_data.num), &args[-1].m_data, (count > 2) ? (args-2) : (TypedValue*)(&defVal2), (count > 3) ? &args[-3].m_data : (Value*)(&null_array));          frame_free_locals_inl(ar, 4);          memcpy(&ar->m_r, &rv, sizeof(TypedValue));          return &ar->m_r;        } else {          tg1_12Continuation___construct(&rv, ar, count , this_);          frame_free_locals_inl(ar, 4);          memcpy(&ar->m_r, &rv, sizeof(TypedValue));          return &ar->m_r;        }      } else {        throw_wrong_arguments_nr("Continuation::__construct", count, 2, 4, 1);      }    } else {      throw_instance_method_fatal("Continuation::__construct");    }    rv.m_data.num = 0LL;    rv.m_type = KindOfNull;    frame_free_locals_inl(ar, 4);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  return &ar->m_r;}
开发者ID:ChrisOHu,项目名称:hiphop-php,代码行数:34,


示例22: tg_11SQLite3Stmt___construct

TypedValue* tg_11SQLite3Stmt___construct(ActRec* ar) {  TypedValue rvSpace;  TypedValue* rv = &rvSpace;  int32_t count = ar->numArgs();  TypedValue* args UNUSED = ((TypedValue*)ar) - 1;  ObjectData* this_ = (ar->hasThis() ? ar->getThis() : nullptr);  if (this_) {    if (count == 2) {      if (IS_STRING_TYPE((args - 1)->m_type) &&          (args - 0)->m_type == KindOfObject) {        rv->m_type = KindOfNull;        th_11SQLite3Stmt___construct((this_), &args[-0].m_data, &args[-1].m_data);      } else {        tg1_11SQLite3Stmt___construct(rv, ar, count, this_);      }    } else {      throw_wrong_arguments_nr("SQLite3Stmt::__construct", count, 2, 2, 1);      rv->m_data.num = 0LL;      rv->m_type = KindOfNull;    }  } else {    throw_instance_method_fatal("SQLite3Stmt::__construct");  }  frame_free_locals_inl(ar, 2);  memcpy(&ar->m_r, rv, sizeof(TypedValue));  return &ar->m_r;}
开发者ID:7755373049,项目名称:hiphop-php,代码行数:27,


示例23: tg_12Continuation_raise

TypedValue* tg_12Continuation_raise(HPHP::VM::ActRec *ar) {    TypedValue rv;    int64_t count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    ObjectData* this_ = (ar->hasThis() ? ar->getThis() : NULL);    if (this_) {      if (count == 1LL) {        rv.m_data.num = 0LL;        rv.m_type = KindOfNull;        th_12Continuation_raise((this_), (args-0));        frame_free_locals_inl(ar, 1);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      } else {        throw_wrong_arguments_nr("Continuation::raise", count, 1, 1, 1);      }    } else {      throw_instance_method_fatal("Continuation::raise");    }    rv.m_data.num = 0LL;    rv.m_type = KindOfNull;    frame_free_locals_inl(ar, 1);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  return &ar->m_r;}
开发者ID:ChrisOHu,项目名称:hiphop-php,代码行数:26,


示例24: tg_7SQLite3_querysingle

TypedValue* tg_7SQLite3_querysingle(ActRec* ar) {  TypedValue rvSpace;  TypedValue* rv = &rvSpace;  int32_t count = ar->numArgs();  TypedValue* args UNUSED = ((TypedValue*)ar) - 1;  ObjectData* this_ = (ar->hasThis() ? ar->getThis() : nullptr);  if (this_) {    if (count >= 1 && count <= 2) {      if ((count <= 1 || (args - 1)->m_type == KindOfBoolean) &&          IS_STRING_TYPE((args - 0)->m_type)) {        th_7SQLite3_querysingle(rv, (this_), &args[-0].m_data, (count > 1) ? (bool)(args[-1].m_data.num) : (bool)(false));        if (rv->m_type == KindOfUninit) rv->m_type = KindOfNull;      } else {        tg1_7SQLite3_querysingle(rv, ar, count, this_);      }    } else {      throw_wrong_arguments_nr("SQLite3::querysingle", count, 1, 2, 1);      rv->m_data.num = 0LL;      rv->m_type = KindOfNull;    }  } else {    throw_instance_method_fatal("SQLite3::querysingle");  }  frame_free_locals_inl(ar, 2);  memcpy(&ar->m_r, rv, sizeof(TypedValue));  return &ar->m_r;}
开发者ID:7755373049,项目名称:hiphop-php,代码行数:27,


示例25: tg_12SpoofChecker_setChecks

TypedValue* tg_12SpoofChecker_setChecks(HPHP::VM::ActRec *ar) {    TypedValue rv;    int64_t count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    ObjectData* this_ = (ar->hasThis() ? ar->getThis() : NULL);    if (this_) {      if (count == 1LL) {        if ((args-0)->m_type == KindOfInt64) {          rv.m_data.num = 0LL;          rv._count = 0;          rv.m_type = KindOfNull;          th_12SpoofChecker_setChecks((this_), (int)(args[-0].m_data.num));          frame_free_locals_inl(ar, 1);          memcpy(&ar->m_r, &rv, sizeof(TypedValue));          return &ar->m_r;        } else {          tg1_12SpoofChecker_setChecks(&rv, ar, count , this_);          frame_free_locals_inl(ar, 1);          memcpy(&ar->m_r, &rv, sizeof(TypedValue));          return &ar->m_r;        }      } else {        throw_wrong_arguments_nr("SpoofChecker::setChecks", count, 1, 1, 1);      }    } else {      throw_instance_method_fatal("SpoofChecker::setChecks");    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_inl(ar, 1);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  return &ar->m_r;}
开发者ID:BauerBox,项目名称:hiphop-php,代码行数:35,


示例26: tg_7SQLite3___construct

TypedValue* tg_7SQLite3___construct(ActRec* ar) {  TypedValue rvSpace;  TypedValue* rv = &rvSpace;  int32_t count = ar->numArgs();  TypedValue* args UNUSED = ((TypedValue*)ar) - 1;  ObjectData* this_ = (ar->hasThis() ? ar->getThis() : nullptr);  if (this_) {    if (count >= 1 && count <= 3) {      if ((count <= 2 || IS_STRING_TYPE((args - 2)->m_type)) &&          (count <= 1 || (args - 1)->m_type == KindOfInt64) &&          IS_STRING_TYPE((args - 0)->m_type)) {        rv->m_type = KindOfNull;        th_7SQLite3___construct((this_), &args[-0].m_data, (count > 1) ? (long)(args[-1].m_data.num) : (long)(k_SQLITE3_OPEN_READWRITE|k_SQLITE3_OPEN_CREATE), (count > 2) ? &args[-2].m_data : (Value*)(&null_string));      } else {        tg1_7SQLite3___construct(rv, ar, count, this_);      }    } else {      throw_wrong_arguments_nr("SQLite3::__construct", count, 1, 3, 1);      rv->m_data.num = 0LL;      rv->m_type = KindOfNull;    }  } else {    throw_instance_method_fatal("SQLite3::__construct");  }  frame_free_locals_inl(ar, 3);  memcpy(&ar->m_r, rv, sizeof(TypedValue));  return &ar->m_r;}
开发者ID:7755373049,项目名称:hiphop-php,代码行数:28,


示例27: tg_12SpoofChecker_isSuspicious

TypedValue* tg_12SpoofChecker_isSuspicious(HPHP::VM::ActRec *ar) {    TypedValue rv;    int64_t count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    ObjectData* this_ = (ar->hasThis() ? ar->getThis() : NULL);    if (this_) {      if (count >= 1LL && count <= 2LL) {        if (IS_STRING_TYPE((args-0)->m_type)) {          rv._count = 0;          rv.m_type = KindOfBoolean;          VRefParamValue defVal1 = null;          rv.m_data.num = (th_12SpoofChecker_isSuspicious((this_), (Value*)(args-0), (count > 1) ? (args-1) : (TypedValue*)(&defVal1))) ? 1LL : 0LL;          frame_free_locals_inl(ar, 2);          memcpy(&ar->m_r, &rv, sizeof(TypedValue));          return &ar->m_r;        } else {          tg1_12SpoofChecker_isSuspicious(&rv, ar, count , this_);          frame_free_locals_inl(ar, 2);          memcpy(&ar->m_r, &rv, sizeof(TypedValue));          return &ar->m_r;        }      } else {        throw_wrong_arguments_nr("SpoofChecker::isSuspicious", count, 1, 2, 1);      }    } else {      throw_instance_method_fatal("SpoofChecker::isSuspicious");    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_inl(ar, 2);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  return &ar->m_r;}
开发者ID:BauerBox,项目名称:hiphop-php,代码行数:35,


示例28: tg_7SQLite3_createfunction

TypedValue* tg_7SQLite3_createfunction(ActRec* ar) {  TypedValue rvSpace;  TypedValue* rv = &rvSpace;  int32_t count = ar->numArgs();  TypedValue* args UNUSED = ((TypedValue*)ar) - 1;  ObjectData* this_ = (ar->hasThis() ? ar->getThis() : nullptr);  if (this_) {    if (count >= 2 && count <= 3) {      if ((count <= 2 || (args - 2)->m_type == KindOfInt64) &&          IS_STRING_TYPE((args - 0)->m_type)) {        rv->m_type = KindOfBoolean;        rv->m_data.num = (th_7SQLite3_createfunction((this_), &args[-0].m_data, (args-1), (count > 2) ? (long)(args[-2].m_data.num) : (long)(-1))) ? 1LL : 0LL;      } else {        tg1_7SQLite3_createfunction(rv, ar, count, this_);      }    } else {      throw_wrong_arguments_nr("SQLite3::createfunction", count, 2, 3, 1);      rv->m_data.num = 0LL;      rv->m_type = KindOfNull;    }  } else {    throw_instance_method_fatal("SQLite3::createfunction");  }  frame_free_locals_inl(ar, 3);  memcpy(&ar->m_r, rv, sizeof(TypedValue));  return &ar->m_r;}
开发者ID:7755373049,项目名称:hiphop-php,代码行数:27,


示例29: tg_13EncodingMatch___destruct

TypedValue* tg_13EncodingMatch___destruct(HPHP::VM::ActRec *ar) {  EXCEPTION_GATE_ENTER();    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    ObjectData* this_ = (ar->hasThis() ? ar->getThis() : NULL);    if (this_) {      if (count == 0LL) {        th_13EncodingMatch___destruct((&(rv)), (this_));        if (rv.m_type == KindOfUninit) rv.m_type = KindOfNull;        frame_free_locals_inl(ar, 0);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      } else {        throw_toomany_arguments_nr("EncodingMatch::__destruct", 0, 1);      }    } else {      throw_instance_method_fatal("EncodingMatch::__destruct");    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_inl(ar, 0);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  EXCEPTION_GATE_RETURN(&ar->m_r);}
开发者ID:DenisBazhan,项目名称:hiphop-php,代码行数:27,


示例30: tg_7SQLite3_openblob

TypedValue* tg_7SQLite3_openblob(ActRec* ar) {  TypedValue rvSpace;  TypedValue* rv = &rvSpace;  int32_t count = ar->numArgs();  TypedValue* args UNUSED = ((TypedValue*)ar) - 1;  ObjectData* this_ = (ar->hasThis() ? ar->getThis() : nullptr);  if (this_) {    if (count >= 3 && count <= 4) {      if ((count <= 3 || IS_STRING_TYPE((args - 3)->m_type)) &&          (args - 2)->m_type == KindOfInt64 &&          IS_STRING_TYPE((args - 1)->m_type) &&          IS_STRING_TYPE((args - 0)->m_type)) {        rv->m_type = KindOfBoolean;        rv->m_data.num = (th_7SQLite3_openblob((this_), &args[-0].m_data, &args[-1].m_data, (long)(args[-2].m_data.num), (count > 3) ? &args[-3].m_data : (Value*)(&null_string))) ? 1LL : 0LL;      } else {        tg1_7SQLite3_openblob(rv, ar, count, this_);      }    } else {      throw_wrong_arguments_nr("SQLite3::openblob", count, 3, 4, 1);      rv->m_data.num = 0LL;      rv->m_type = KindOfNull;    }  } else {    throw_instance_method_fatal("SQLite3::openblob");  }  frame_free_locals_inl(ar, 4);  memcpy(&ar->m_r, rv, sizeof(TypedValue));  return &ar->m_r;}
开发者ID:7755373049,项目名称:hiphop-php,代码行数:29,



注:本文中的throw_instance_method_fatal函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ throw_invalid_argument函数代码示例
C++ throw_if_disposed函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。