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

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

51自学网 2021-06-01 20:35:56
  C++
这篇教程C++ EXCEPTION_GATE_ENTER函数代码示例写得很实用,希望能帮到您。

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

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

示例1: fg_stream_select

TypedValue* fg_stream_select(HPHP::VM::ActRec *ar) {    EXCEPTION_GATE_ENTER();    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    if (count >= 4LL && count <= 5LL) {        if ((count <= 4 || (args-4)->m_type == KindOfInt64)) {            fh_stream_select((&(rv)), (args-0), (args-1), (args-2), (args-3), (count > 4) ? (int)(args[-4].m_data.num) : (int)(0));            if (rv.m_type == KindOfUninit) rv.m_type = KindOfNull;            frame_free_locals_no_this_inl(ar, 5);            memcpy(&ar->m_r, &rv, sizeof(TypedValue));            return &ar->m_r;        } else {            fg1_stream_select(&rv, ar, count);            frame_free_locals_no_this_inl(ar, 5);            memcpy(&ar->m_r, &rv, sizeof(TypedValue));            return &ar->m_r;        }    } else {        throw_wrong_arguments_nr("stream_select", count, 4, 5, 1);    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_no_this_inl(ar, 5);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;    EXCEPTION_GATE_RETURN(&ar->m_r);}
开发者ID:prototype,项目名称:hiphop-php,代码行数:29,


示例2: fg_user_error

TypedValue* fg_user_error(HPHP::VM::ActRec *ar) {  EXCEPTION_GATE_ENTER();    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    if (count >= 1LL && count <= 2LL) {      if ((count <= 1 || (args-1)->m_type == KindOfInt64) && IS_STRING_TYPE((args-0)->m_type)) {        rv._count = 0;        rv.m_type = KindOfBoolean;        rv.m_data.num = (fh_user_error((Value*)(args-0), (count > 1) ? (int)(args[-1].m_data.num) : (int)(k_E_USER_NOTICE))) ? 1LL : 0LL;        frame_free_locals_no_this_inl(ar, 2);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      } else {        fg1_user_error(&rv, ar, count);        frame_free_locals_no_this_inl(ar, 2);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      }    } else {      throw_wrong_arguments_nr("user_error", count, 1, 2, 1);    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_no_this_inl(ar, 2);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  EXCEPTION_GATE_RETURN(&ar->m_r);}
开发者ID:KWMalik,项目名称:hiphop-php,代码行数:30,


示例3: fg_posix_getgrgid

TypedValue* fg_posix_getgrgid(HPHP::VM::ActRec *ar) {  EXCEPTION_GATE_ENTER();    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    if (count == 1LL) {      if ((args-0)->m_type == KindOfInt64) {        fh_posix_getgrgid((&(rv)), (int)(args[-0].m_data.num));        if (rv.m_type == KindOfUninit) rv.m_type = KindOfNull;        frame_free_locals_no_this_inl(ar, 1);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      } else {        fg1_posix_getgrgid(&rv, ar, count);        frame_free_locals_no_this_inl(ar, 1);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      }    } else {      throw_wrong_arguments_nr("posix_getgrgid", count, 1, 1, 1);    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_no_this_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,


示例4: fg_proc_get_status

TypedValue* fg_proc_get_status(HPHP::VM::ActRec *ar) {  EXCEPTION_GATE_ENTER();    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    if (count == 1LL) {      if ((args-0)->m_type == KindOfObject) {        rv._count = 0;        rv.m_type = KindOfArray;        fh_proc_get_status((Value*)(&(rv)), (Value*)(args-0));        if (rv.m_data.num == 0LL) rv.m_type = KindOfNull;        frame_free_locals_no_this_inl(ar, 1);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      } else {        fg1_proc_get_status(&rv, ar, count);        frame_free_locals_no_this_inl(ar, 1);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      }    } else {      throw_wrong_arguments_nr("proc_get_status", count, 1, 1, 1);    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_no_this_inl(ar, 1);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  EXCEPTION_GATE_RETURN(&ar->m_r);}
开发者ID:DenisBazhan,项目名称:hiphop-php,代码行数:31,


示例5: fg_set_error_handler

TypedValue* fg_set_error_handler(HPHP::VM::ActRec *ar) {  EXCEPTION_GATE_ENTER();    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    if (count >= 1LL && count <= 2LL) {      if ((count <= 1 || (args-1)->m_type == KindOfInt64)) {        fh_set_error_handler((&(rv)), (args-0), (count > 1) ? (int)(args[-1].m_data.num) : (int)(k_E_ALL));        if (rv.m_type == KindOfUninit) rv.m_type = KindOfNull;        frame_free_locals_no_this_inl(ar, 2);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      } else {        fg1_set_error_handler(&rv, ar, count);        frame_free_locals_no_this_inl(ar, 2);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      }    } else {      throw_wrong_arguments_nr("set_error_handler", count, 1, 2, 1);    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_no_this_inl(ar, 2);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  EXCEPTION_GATE_RETURN(&ar->m_r);}
开发者ID:KWMalik,项目名称:hiphop-php,代码行数:29,


示例6: fg_pcntl_waitpid

TypedValue* fg_pcntl_waitpid(HPHP::VM::ActRec *ar) {  EXCEPTION_GATE_ENTER();    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    if (count >= 2LL && count <= 3LL) {      if ((count <= 2 || (args-2)->m_type == KindOfInt64) && (args-0)->m_type == KindOfInt64) {        rv._count = 0;        rv.m_type = KindOfInt64;        rv.m_data.num = (long long)fh_pcntl_waitpid((int)(args[-0].m_data.num), (args-1), (count > 2) ? (int)(args[-2].m_data.num) : (int)(0));        frame_free_locals_no_this_inl(ar, 3);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      } else {        fg1_pcntl_waitpid(&rv, ar, count);        frame_free_locals_no_this_inl(ar, 3);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      }    } else {      throw_wrong_arguments_nr("pcntl_waitpid", count, 2, 3, 1);    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_no_this_inl(ar, 3);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  EXCEPTION_GATE_RETURN(&ar->m_r);}
开发者ID:DenisBazhan,项目名称:hiphop-php,代码行数:30,


示例7: fg_system

TypedValue* fg_system(HPHP::VM::ActRec *ar) {  EXCEPTION_GATE_ENTER();    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    if (count >= 1LL && count <= 2LL) {      if (IS_STRING_TYPE((args-0)->m_type)) {        rv._count = 0;        rv.m_type = KindOfString;        VRefParamValue defVal1 = null;        fh_system((Value*)(&(rv)), (Value*)(args-0), (count > 1) ? (args-1) : (TypedValue*)(&defVal1));        if (rv.m_data.num == 0LL) rv.m_type = KindOfNull;        frame_free_locals_no_this_inl(ar, 2);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      } else {        fg1_system(&rv, ar, count);        frame_free_locals_no_this_inl(ar, 2);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      }    } else {      throw_wrong_arguments_nr("system", count, 1, 2, 1);    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_no_this_inl(ar, 2);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  EXCEPTION_GATE_RETURN(&ar->m_r);}
开发者ID:DenisBazhan,项目名称:hiphop-php,代码行数:32,


示例8: fg_http_build_query

TypedValue* fg_http_build_query(HPHP::VM::ActRec *ar) {  EXCEPTION_GATE_ENTER();    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    if (count >= 1LL && count <= 3LL) {      if ((count <= 2 || IS_STRING_TYPE((args-2)->m_type)) && (count <= 1 || IS_STRING_TYPE((args-1)->m_type))) {        fh_http_build_query((&(rv)), (args-0), (count > 1) ? (Value*)(args-1) : (Value*)(&null_string), (count > 2) ? (Value*)(args-2) : (Value*)(&null_string));        if (rv.m_type == KindOfUninit) rv.m_type = KindOfNull;        frame_free_locals_no_this_inl(ar, 3);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      } else {        fg1_http_build_query(&rv, ar, count);        frame_free_locals_no_this_inl(ar, 3);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      }    } else {      throw_wrong_arguments_nr("http_build_query", count, 1, 3, 1);    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_no_this_inl(ar, 3);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  EXCEPTION_GATE_RETURN(&ar->m_r);}
开发者ID:ameyapg,项目名称:hiphop-php,代码行数:29,


示例9: fg_base64_decode

TypedValue* fg_base64_decode(HPHP::VM::ActRec *ar) {  EXCEPTION_GATE_ENTER();    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    if (count >= 1LL && count <= 2LL) {      if ((count <= 1 || (args-1)->m_type == KindOfBoolean) && IS_STRING_TYPE((args-0)->m_type)) {        fh_base64_decode((&(rv)), (Value*)(args-0), (count > 1) ? (bool)(args[-1].m_data.num) : (bool)(false));        if (rv.m_type == KindOfUninit) rv.m_type = KindOfNull;        frame_free_locals_no_this_inl(ar, 2);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      } else {        fg1_base64_decode(&rv, ar, count);        frame_free_locals_no_this_inl(ar, 2);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      }    } else {      throw_wrong_arguments_nr("base64_decode", count, 1, 2, 1);    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_no_this_inl(ar, 2);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  EXCEPTION_GATE_RETURN(&ar->m_r);}
开发者ID:ameyapg,项目名称:hiphop-php,代码行数:29,


示例10: fg_stream_socket_sendto

TypedValue* fg_stream_socket_sendto(HPHP::VM::ActRec *ar) {    EXCEPTION_GATE_ENTER();    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    if (count >= 2LL && count <= 4LL) {        if ((count <= 3 || IS_STRING_TYPE((args-3)->m_type)) && (count <= 2 || (args-2)->m_type == KindOfInt64) && IS_STRING_TYPE((args-1)->m_type) && (args-0)->m_type == KindOfObject) {            fh_stream_socket_sendto((&(rv)), (Value*)(args-0), (Value*)(args-1), (count > 2) ? (int)(args[-2].m_data.num) : (int)(0), (count > 3) ? (Value*)(args-3) : (Value*)(&null_string));            if (rv.m_type == KindOfUninit) rv.m_type = KindOfNull;            frame_free_locals_no_this_inl(ar, 4);            memcpy(&ar->m_r, &rv, sizeof(TypedValue));            return &ar->m_r;        } else {            fg1_stream_socket_sendto(&rv, ar, count);            frame_free_locals_no_this_inl(ar, 4);            memcpy(&ar->m_r, &rv, sizeof(TypedValue));            return &ar->m_r;        }    } else {        throw_wrong_arguments_nr("stream_socket_sendto", count, 2, 4, 1);    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_no_this_inl(ar, 4);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;    EXCEPTION_GATE_RETURN(&ar->m_r);}
开发者ID:prototype,项目名称:hiphop-php,代码行数:29,


示例11: fg_stream_socket_shutdown

TypedValue* fg_stream_socket_shutdown(HPHP::VM::ActRec *ar) {    EXCEPTION_GATE_ENTER();    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    if (count == 2LL) {        if ((args-1)->m_type == KindOfInt64 && (args-0)->m_type == KindOfObject) {            rv._count = 0;            rv.m_type = KindOfBoolean;            rv.m_data.num = (fh_stream_socket_shutdown((Value*)(args-0), (int)(args[-1].m_data.num))) ? 1LL : 0LL;            frame_free_locals_no_this_inl(ar, 2);            memcpy(&ar->m_r, &rv, sizeof(TypedValue));            return &ar->m_r;        } else {            fg1_stream_socket_shutdown(&rv, ar, count);            frame_free_locals_no_this_inl(ar, 2);            memcpy(&ar->m_r, &rv, sizeof(TypedValue));            return &ar->m_r;        }    } else {        throw_wrong_arguments_nr("stream_socket_shutdown", count, 2, 2, 1);    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_no_this_inl(ar, 2);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;    EXCEPTION_GATE_RETURN(&ar->m_r);}
开发者ID:prototype,项目名称:hiphop-php,代码行数:30,


示例12: fg_stream_socket_pair

TypedValue* fg_stream_socket_pair(HPHP::VM::ActRec *ar) {    EXCEPTION_GATE_ENTER();    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    if (count == 3LL) {        if ((args-2)->m_type == KindOfInt64 && (args-1)->m_type == KindOfInt64 && (args-0)->m_type == KindOfInt64) {            fh_stream_socket_pair((&(rv)), (int)(args[-0].m_data.num), (int)(args[-1].m_data.num), (int)(args[-2].m_data.num));            if (rv.m_type == KindOfUninit) rv.m_type = KindOfNull;            frame_free_locals_no_this_inl(ar, 3);            memcpy(&ar->m_r, &rv, sizeof(TypedValue));            return &ar->m_r;        } else {            fg1_stream_socket_pair(&rv, ar, count);            frame_free_locals_no_this_inl(ar, 3);            memcpy(&ar->m_r, &rv, sizeof(TypedValue));            return &ar->m_r;        }    } else {        throw_wrong_arguments_nr("stream_socket_pair", count, 3, 3, 1);    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_no_this_inl(ar, 3);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;    EXCEPTION_GATE_RETURN(&ar->m_r);}
开发者ID:prototype,项目名称:hiphop-php,代码行数:29,


示例13: fg_stream_socket_client

TypedValue* fg_stream_socket_client(HPHP::VM::ActRec *ar) {    EXCEPTION_GATE_ENTER();    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    if (count >= 1LL && count <= 6LL) {        if ((count <= 5 || (args-5)->m_type == KindOfObject) && (count <= 4 || (args-4)->m_type == KindOfInt64) && (count <= 3 || (args-3)->m_type == KindOfDouble) && IS_STRING_TYPE((args-0)->m_type)) {            VRefParamValue defVal1 = null;            VRefParamValue defVal2 = null;            fh_stream_socket_client((&(rv)), (Value*)(args-0), (count > 1) ? (args-1) : (TypedValue*)(&defVal1), (count > 2) ? (args-2) : (TypedValue*)(&defVal2), (count > 3) ? (args[-3].m_data.dbl) : (double)(0.0), (count > 4) ? (int)(args[-4].m_data.num) : (int)(0), (count > 5) ? (Value*)(args-5) : (Value*)(&null_object));            if (rv.m_type == KindOfUninit) rv.m_type = KindOfNull;            frame_free_locals_no_this_inl(ar, 6);            memcpy(&ar->m_r, &rv, sizeof(TypedValue));            return &ar->m_r;        } else {            fg1_stream_socket_client(&rv, ar, count);            frame_free_locals_no_this_inl(ar, 6);            memcpy(&ar->m_r, &rv, sizeof(TypedValue));            return &ar->m_r;        }    } else {        throw_wrong_arguments_nr("stream_socket_client", count, 1, 6, 1);    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_no_this_inl(ar, 6);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;    EXCEPTION_GATE_RETURN(&ar->m_r);}
开发者ID:prototype,项目名称:hiphop-php,代码行数:31,


示例14: fg_stream_socket_accept

TypedValue* fg_stream_socket_accept(HPHP::VM::ActRec *ar) {    EXCEPTION_GATE_ENTER();    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    if (count >= 1LL && count <= 3LL) {        if ((count <= 1 || (args-1)->m_type == KindOfDouble) && (args-0)->m_type == KindOfObject) {            VRefParamValue defVal2 = null;            fh_stream_socket_accept((&(rv)), (Value*)(args-0), (count > 1) ? (args[-1].m_data.dbl) : (double)(0.0), (count > 2) ? (args-2) : (TypedValue*)(&defVal2));            if (rv.m_type == KindOfUninit) rv.m_type = KindOfNull;            frame_free_locals_no_this_inl(ar, 3);            memcpy(&ar->m_r, &rv, sizeof(TypedValue));            return &ar->m_r;        } else {            fg1_stream_socket_accept(&rv, ar, count);            frame_free_locals_no_this_inl(ar, 3);            memcpy(&ar->m_r, &rv, sizeof(TypedValue));            return &ar->m_r;        }    } else {        throw_wrong_arguments_nr("stream_socket_accept", count, 1, 3, 1);    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_no_this_inl(ar, 3);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;    EXCEPTION_GATE_RETURN(&ar->m_r);}
开发者ID:prototype,项目名称:hiphop-php,代码行数:30,


示例15: fg_hphp_get_static_property

TypedValue* fg_hphp_get_static_property(HPHP::VM::ActRec *ar) {  EXCEPTION_GATE_ENTER();    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    if (count == 2LL) {      if (IS_STRING_TYPE((args-1)->m_type) && IS_STRING_TYPE((args-0)->m_type)) {        fh_hphp_get_static_property((&(rv)), (Value*)(args-0), (Value*)(args-1));        if (rv.m_type == KindOfUninit) rv.m_type = KindOfNull;        frame_free_locals_no_this_inl(ar, 2);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      } else {        fg1_hphp_get_static_property(&rv, ar, count);        frame_free_locals_no_this_inl(ar, 2);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      }    } else {      throw_wrong_arguments_nr("hphp_get_static_property", count, 2, 2, 1);    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_no_this_inl(ar, 2);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  EXCEPTION_GATE_RETURN(&ar->m_r);}
开发者ID:DenisBazhan,项目名称:hiphop-php,代码行数:29,


示例16: fg_hphp_pack_continuation

TypedValue* fg_hphp_pack_continuation(HPHP::VM::ActRec *ar) {  EXCEPTION_GATE_ENTER();    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    if (count == 3LL) {      if ((args-1)->m_type == KindOfInt64 && (args-0)->m_type == KindOfObject) {        rv.m_data.num = 0LL;        rv._count = 0;        rv.m_type = KindOfNull;        fh_hphp_pack_continuation((Value*)(args-0), (long long)(args[-1].m_data.num), (args-2));        frame_free_locals_no_this_inl(ar, 3);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      } else {        fg1_hphp_pack_continuation(&rv, ar, count);        frame_free_locals_no_this_inl(ar, 3);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      }    } else {      throw_wrong_arguments_nr("hphp_pack_continuation", count, 3, 3, 1);    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_no_this_inl(ar, 3);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  EXCEPTION_GATE_RETURN(&ar->m_r);}
开发者ID:KWMalik,项目名称:hiphop-php,代码行数:31,


示例17: fg_pcntl_getpriority

TypedValue* fg_pcntl_getpriority(HPHP::VM::ActRec *ar) {  EXCEPTION_GATE_ENTER();    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    if (count <= 2LL) {      if ((count <= 1 || (args-1)->m_type == KindOfInt64) && (count <= 0 || (args-0)->m_type == KindOfInt64)) {        fh_pcntl_getpriority((&(rv)), (count > 0) ? (int)(args[-0].m_data.num) : (int)(0), (count > 1) ? (int)(args[-1].m_data.num) : (int)(0));        if (rv.m_type == KindOfUninit) rv.m_type = KindOfNull;        frame_free_locals_no_this_inl(ar, 2);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      } else {        fg1_pcntl_getpriority(&rv, ar, count);        frame_free_locals_no_this_inl(ar, 2);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      }    } else {      throw_toomany_arguments_nr("pcntl_getpriority", 2, 1);    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_no_this_inl(ar, 2);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  EXCEPTION_GATE_RETURN(&ar->m_r);}
开发者ID:DenisBazhan,项目名称:hiphop-php,代码行数:29,


示例18: 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,


示例19: fg_pcntl_exec

TypedValue* fg_pcntl_exec(HPHP::VM::ActRec *ar) {  EXCEPTION_GATE_ENTER();    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    if (count >= 1LL && count <= 3LL) {      if ((count <= 2 || (args-2)->m_type == KindOfArray) && (count <= 1 || (args-1)->m_type == KindOfArray) && IS_STRING_TYPE((args-0)->m_type)) {        rv.m_data.num = 0LL;        rv._count = 0;        rv.m_type = KindOfNull;        fh_pcntl_exec((Value*)(args-0), (count > 1) ? (Value*)(args-1) : (Value*)(&null_array), (count > 2) ? (Value*)(args-2) : (Value*)(&null_array));        frame_free_locals_no_this_inl(ar, 3);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      } else {        fg1_pcntl_exec(&rv, ar, count);        frame_free_locals_no_this_inl(ar, 3);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      }    } else {      throw_wrong_arguments_nr("pcntl_exec", count, 1, 3, 1);    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_no_this_inl(ar, 3);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  EXCEPTION_GATE_RETURN(&ar->m_r);}
开发者ID:DenisBazhan,项目名称:hiphop-php,代码行数:31,


示例20: fg_hphp_create_continuation

TypedValue* fg_hphp_create_continuation(HPHP::VM::ActRec *ar) {  EXCEPTION_GATE_ENTER();    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    if (count >= 3LL && count <= 4LL) {      if ((count <= 3 || (args-3)->m_type == KindOfArray) && IS_STRING_TYPE((args-2)->m_type) && IS_STRING_TYPE((args-1)->m_type) && IS_STRING_TYPE((args-0)->m_type)) {        rv._count = 0;        rv.m_type = KindOfObject;        fh_hphp_create_continuation((Value*)(&(rv)), (Value*)(args-0), (Value*)(args-1), (Value*)(args-2), (count > 3) ? (Value*)(args-3) : (Value*)(&null_array));        if (rv.m_data.num == 0LL) rv.m_type = KindOfNull;        frame_free_locals_no_this_inl(ar, 4);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      } else {        fg1_hphp_create_continuation(&rv, ar, count);        frame_free_locals_no_this_inl(ar, 4);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      }    } else {      throw_wrong_arguments_nr("hphp_create_continuation", count, 3, 4, 1);    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_no_this_inl(ar, 4);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  EXCEPTION_GATE_RETURN(&ar->m_r);}
开发者ID:KWMalik,项目名称:hiphop-php,代码行数:31,


示例21: fg_proc_open

TypedValue* fg_proc_open(HPHP::VM::ActRec *ar) {  EXCEPTION_GATE_ENTER();    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    if (count >= 3LL && count <= 6LL) {      if ((count <= 3 || IS_STRING_TYPE((args-3)->m_type)) && (args-1)->m_type == KindOfArray && IS_STRING_TYPE((args-0)->m_type)) {        fh_proc_open((&(rv)), (Value*)(args-0), (Value*)(args-1), (args-2), (count > 3) ? (Value*)(args-3) : (Value*)(&null_string), (count > 4) ? (args-4) : (TypedValue*)(&null_variant), (count > 5) ? (args-5) : (TypedValue*)(&null_variant));        if (rv.m_type == KindOfUninit) rv.m_type = KindOfNull;        frame_free_locals_no_this_inl(ar, 6);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      } else {        fg1_proc_open(&rv, ar, count);        frame_free_locals_no_this_inl(ar, 6);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      }    } else {      throw_wrong_arguments_nr("proc_open", count, 3, 6, 1);    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_no_this_inl(ar, 6);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  EXCEPTION_GATE_RETURN(&ar->m_r);}
开发者ID:DenisBazhan,项目名称:hiphop-php,代码行数:29,


示例22: tg_12Continuation_raise

TypedValue* tg_12Continuation_raise(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_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._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,


示例23: fg_debug_backtrace

TypedValue* fg_debug_backtrace(HPHP::VM::ActRec *ar) {  EXCEPTION_GATE_ENTER();    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    if (count <= 1LL) {      if ((count <= 0 || (args-0)->m_type == KindOfBoolean)) {        rv._count = 0;        rv.m_type = KindOfArray;        fh_debug_backtrace((Value*)(&(rv)), (count > 0) ? (bool)(args[-0].m_data.num) : (bool)(true));        if (rv.m_data.num == 0LL) rv.m_type = KindOfNull;        frame_free_locals_no_this_inl(ar, 1);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      } else {        fg1_debug_backtrace(&rv, ar, count);        frame_free_locals_no_this_inl(ar, 1);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      }    } else {      throw_toomany_arguments_nr("debug_backtrace", 1, 1);    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_no_this_inl(ar, 1);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  EXCEPTION_GATE_RETURN(&ar->m_r);}
开发者ID:KWMalik,项目名称:hiphop-php,代码行数:31,


示例24: 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,


示例25: fg_hphp_throw_fatal_error

TypedValue* fg_hphp_throw_fatal_error(HPHP::VM::ActRec *ar) {  EXCEPTION_GATE_ENTER();    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    if (count == 1LL) {      if (IS_STRING_TYPE((args-0)->m_type)) {        rv.m_data.num = 0LL;        rv._count = 0;        rv.m_type = KindOfNull;        fh_hphp_throw_fatal_error((Value*)(args-0));        frame_free_locals_no_this_inl(ar, 1);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      } else {        fg1_hphp_throw_fatal_error(&rv, ar, count);        frame_free_locals_no_this_inl(ar, 1);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      }    } else {      throw_wrong_arguments_nr("hphp_throw_fatal_error", count, 1, 1, 1);    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_no_this_inl(ar, 1);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  EXCEPTION_GATE_RETURN(&ar->m_r);}
开发者ID:KWMalik,项目名称:hiphop-php,代码行数:31,


示例26: fg_icu_transliterate

TypedValue* fg_icu_transliterate(HPHP::VM::ActRec *ar) {  EXCEPTION_GATE_ENTER();    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    if (count == 2LL) {      if ((args-1)->m_type == KindOfBoolean && IS_STRING_TYPE((args-0)->m_type)) {        rv._count = 0;        rv.m_type = KindOfString;        fh_icu_transliterate((Value*)(&(rv)), (Value*)(args-0), (bool)(args[-1].m_data.num));        if (rv.m_data.num == 0LL) rv.m_type = KindOfNull;        frame_free_locals_no_this_inl(ar, 2);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      } else {        fg1_icu_transliterate(&rv, ar, count);        frame_free_locals_no_this_inl(ar, 2);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      }    } else {      throw_wrong_arguments_nr("icu_transliterate", count, 2, 2, 1);    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_no_this_inl(ar, 2);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  EXCEPTION_GATE_RETURN(&ar->m_r);}
开发者ID:KWMalik,项目名称:hiphop-php,代码行数:31,


示例27: fg_posix_mknod

TypedValue* fg_posix_mknod(HPHP::VM::ActRec *ar) {  EXCEPTION_GATE_ENTER();    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    if (count >= 2LL && count <= 4LL) {      if ((count <= 3 || (args-3)->m_type == KindOfInt64) && (count <= 2 || (args-2)->m_type == KindOfInt64) && (args-1)->m_type == KindOfInt64 && IS_STRING_TYPE((args-0)->m_type)) {        rv._count = 0;        rv.m_type = KindOfBoolean;        rv.m_data.num = (fh_posix_mknod((Value*)(args-0), (int)(args[-1].m_data.num), (count > 2) ? (int)(args[-2].m_data.num) : (int)(0), (count > 3) ? (int)(args[-3].m_data.num) : (int)(0))) ? 1LL : 0LL;        frame_free_locals_no_this_inl(ar, 4);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      } else {        fg1_posix_mknod(&rv, ar, count);        frame_free_locals_no_this_inl(ar, 4);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      }    } else {      throw_wrong_arguments_nr("posix_mknod", count, 2, 4, 1);    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_no_this_inl(ar, 4);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  EXCEPTION_GATE_RETURN(&ar->m_r);}
开发者ID:KWMalik,项目名称:hiphop-php,代码行数:30,


示例28: fg_hphp_instanceof

TypedValue* fg_hphp_instanceof(HPHP::VM::ActRec *ar) {  EXCEPTION_GATE_ENTER();    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    if (count == 2LL) {      if (IS_STRING_TYPE((args-1)->m_type) && (args-0)->m_type == KindOfObject) {        rv._count = 0;        rv.m_type = KindOfBoolean;        rv.m_data.num = (fh_hphp_instanceof((Value*)(args-0), (Value*)(args-1))) ? 1LL : 0LL;        frame_free_locals_no_this_inl(ar, 2);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      } else {        fg1_hphp_instanceof(&rv, ar, count);        frame_free_locals_no_this_inl(ar, 2);        memcpy(&ar->m_r, &rv, sizeof(TypedValue));        return &ar->m_r;      }    } else {      throw_wrong_arguments_nr("hphp_instanceof", count, 2, 2, 1);    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_no_this_inl(ar, 2);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;  EXCEPTION_GATE_RETURN(&ar->m_r);}
开发者ID:DenisBazhan,项目名称:hiphop-php,代码行数:30,


示例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: fg_stream_get_contents

TypedValue* fg_stream_get_contents(HPHP::VM::ActRec *ar) {    EXCEPTION_GATE_ENTER();    TypedValue rv;    long long count = ar->numArgs();    TypedValue* args UNUSED = ((TypedValue*)ar) - 1;    if (count >= 1LL && count <= 3LL) {        if ((count <= 2 || (args-2)->m_type == KindOfInt64) && (count <= 1 || (args-1)->m_type == KindOfInt64) && (args-0)->m_type == KindOfObject) {            fh_stream_get_contents((&(rv)), (Value*)(args-0), (count > 1) ? (int)(args[-1].m_data.num) : (int)(0), (count > 2) ? (int)(args[-2].m_data.num) : (int)(0));            if (rv.m_type == KindOfUninit) rv.m_type = KindOfNull;            frame_free_locals_no_this_inl(ar, 3);            memcpy(&ar->m_r, &rv, sizeof(TypedValue));            return &ar->m_r;        } else {            fg1_stream_get_contents(&rv, ar, count);            frame_free_locals_no_this_inl(ar, 3);            memcpy(&ar->m_r, &rv, sizeof(TypedValue));            return &ar->m_r;        }    } else {        throw_wrong_arguments_nr("stream_get_contents", count, 1, 3, 1);    }    rv.m_data.num = 0LL;    rv._count = 0;    rv.m_type = KindOfNull;    frame_free_locals_no_this_inl(ar, 3);    memcpy(&ar->m_r, &rv, sizeof(TypedValue));    return &ar->m_r;    EXCEPTION_GATE_RETURN(&ar->m_r);}
开发者ID:prototype,项目名称:hiphop-php,代码行数:29,



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


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