• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ LOG_API函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: chewing_cand_Enumerate

CHEWING_API void chewing_cand_Enumerate(ChewingContext *ctx)
{
    ChewingData *pgdata;

    if (!ctx) {
        return;
    }
    pgdata = ctx->data;

    LOG_API("");

    ctx->cand_no = ctx->output->pci->pageNo * ctx->output->pci->nChoicePerPage;
}
开发者ID:czchen,项目名称:debian-libchewing,代码行数:13,代码来源:mod_aux.c


示例2: chewing_cand_TotalChoice

CHEWING_API int chewing_cand_TotalChoice(const ChewingContext *ctx)
{
    const ChewingData *pgdata;

    if (!ctx) {
        return -1;
    }
    pgdata = ctx->data;

    LOG_API("");

    return (ctx->output->pci ? ctx->output->pci->nTotalChoice : 0);
}
开发者ID:czchen,项目名称:debian-libchewing,代码行数:13,代码来源:mod_aux.c


示例3: chewing_cand_CurrentPage

CHEWING_API int chewing_cand_CurrentPage(const ChewingContext *ctx)
{
    const ChewingData *pgdata;

    if (!ctx) {
        return -1;
    }
    pgdata = ctx->data;

    LOG_API("");

    return (ctx->output->pci ? ctx->output->pci->pageNo : -1);
}
开发者ID:czchen,项目名称:debian-libchewing,代码行数:13,代码来源:mod_aux.c


示例4: chewing_cand_CheckDone

CHEWING_API int chewing_cand_CheckDone(const ChewingContext *ctx)
{
    const ChewingData *pgdata;

    if (!ctx) {
        return -1;
    }
    pgdata = ctx->data;

    LOG_API("");

    return (!ctx->output->pci);
}
开发者ID:czchen,项目名称:debian-libchewing,代码行数:13,代码来源:mod_aux.c


示例5: chewing_cursor_Current

CHEWING_API int chewing_cursor_Current(const ChewingContext *ctx)
{
    const ChewingData *pgdata;

    if (!ctx) {
        return -1;
    }
    pgdata = ctx->data;

    LOG_API("");

    return (ctx->output->chiSymbolCursor);
}
开发者ID:czchen,项目名称:debian-libchewing,代码行数:13,代码来源:mod_aux.c


示例6: chewing_bopomofo_Check

CHEWING_API int chewing_bopomofo_Check(const ChewingContext *ctx)
{
    const ChewingData *pgdata;

    if (!ctx) {
        return -1;
    }
    pgdata = ctx->data;

    LOG_API("");

    return ctx->output->bopomofoBuf[0] != 0;
}
开发者ID:czchen,项目名称:debian-libchewing,代码行数:13,代码来源:mod_aux.c


示例7: chewing_cand_hasNext

CHEWING_API int chewing_cand_hasNext(ChewingContext *ctx)
{
    ChewingData *pgdata;

    if (!ctx) {
        return -1;
    }
    pgdata = ctx->data;

    LOG_API("");

    return (ctx->cand_no < ctx->output->pci->nTotalChoice);
}
开发者ID:czchen,项目名称:debian-libchewing,代码行数:13,代码来源:mod_aux.c


示例8: chewing_aux_Length

CHEWING_API int chewing_aux_Length(const ChewingContext *ctx)
{
    const ChewingData *pgdata;

    if (!ctx) {
        return -1;
    }
    pgdata = ctx->data;

    LOG_API("");

    return (ctx->data->bShowMsg ? ctx->data->showMsgLen : 0);
}
开发者ID:czchen,项目名称:debian-libchewing,代码行数:13,代码来源:mod_aux.c


示例9: strdup

CHEWING_API char *chewing_buffer_String(const ChewingContext *ctx)
{
    const ChewingData *pgdata;

    if (!ctx) {
        return strdup("");
    }
    pgdata = ctx->data;

    LOG_API("");

    return strdup(ctx->output->preeditBuf);
}
开发者ID:czchen,项目名称:debian-libchewing,代码行数:13,代码来源:mod_aux.c


示例10: LOG_API

CHEWING_API const char *chewing_aux_String_static(const ChewingContext *ctx)
{
    const ChewingData *pgdata;

    if (!ctx) {
        return "";
    }
    pgdata = ctx->data;

    LOG_API("");

    return ctx->data->showMsg;
}
开发者ID:czchen,项目名称:debian-libchewing,代码行数:13,代码来源:mod_aux.c


示例11: chewing_commit_Check

/**
 * @param ctx handle to Chewing IM context
 * @retval TRUE if it currnet input state is at the "end-of-a-char"
 */
CHEWING_API int chewing_commit_Check(const ChewingContext *ctx)
{
    const ChewingData *pgdata;

    if (!ctx) {
        return -1;
    }
    pgdata = ctx->data;

    LOG_API("");

    return ! !(ctx->output->keystrokeRtn & KEYSTROKE_COMMIT);
}
开发者ID:czchen,项目名称:debian-libchewing,代码行数:17,代码来源:mod_aux.c


示例12: chewing_aux_Check

CHEWING_API int chewing_aux_Check(const ChewingContext *ctx)
{
    const ChewingData *pgdata;

    if (!ctx) {
        return -1;
    }
    pgdata = ctx->data;

    LOG_API("");

    return (ctx->data->bShowMsg);
}
开发者ID:czchen,项目名称:debian-libchewing,代码行数:13,代码来源:mod_aux.c


示例13: chewing_interval_hasNext

CHEWING_API int chewing_interval_hasNext(ChewingContext *ctx)
{
    ChewingData *pgdata;

    if (!ctx) {
        return -1;
    }
    pgdata = ctx->data;

    LOG_API("");

    return (ctx->it_no < ctx->output->nDispInterval);
}
开发者ID:czchen,项目名称:debian-libchewing,代码行数:13,代码来源:mod_aux.c


示例14: chewing_interval_Enumerate

CHEWING_API void chewing_interval_Enumerate(ChewingContext *ctx)
{
    ChewingData *pgdata;

    if (!ctx) {
        return;
    }
    pgdata = ctx->data;

    LOG_API("");

    ctx->it_no = 0;
}
开发者ID:czchen,项目名称:debian-libchewing,代码行数:13,代码来源:mod_aux.c


示例15: LOG_API

HRESULT HookIDirect3DDevice9::CreateVolumeTexture(LPVOID _this,
												  UINT Width,
												  UINT Height,
												  UINT Depth,
												  UINT Levels,
												  DWORD Usage,
												  D3DFORMAT Format,
												  D3DPOOL Pool,
												  IDirect3DVolumeTexture9** ppVolumeTexture,
												  HANDLE* pSharedHandle)
{
	LOG_API();
	return pD3Dev->CreateVolumeTexture(Width, Height, Depth, Levels, Usage, Format, Pool, ppVolumeTexture, pSharedHandle);
}
开发者ID:zxmarcos,项目名称:bg4t_monitor,代码行数:14,代码来源:D3DWrapper.cpp


示例16: nContextPeekMessage

static jint
nContextPeekMessage(JNIEnv *_env, jobject _this, RsContext con, jintArray auxData)
{
    LOG_API("nContextPeekMessage, con(%p)", con);
    jint *auxDataPtr = _env->GetIntArrayElements(auxData, NULL);
    size_t receiveLen;
    uint32_t subID;
    int id = dispatchTab.ContextPeekMessage(con, &receiveLen, sizeof(receiveLen),
                                  &subID, sizeof(subID));
    auxDataPtr[0] = (jint)subID;
    auxDataPtr[1] = (jint)receiveLen;
    _env->ReleaseIntArrayElements(auxData, auxDataPtr, 0);
    return id;
}
开发者ID:anoop44,项目名称:platform_frameworks_support,代码行数:14,代码来源:android_renderscript_RenderScript.cpp


示例17: nContextSendMessage

static void
nContextSendMessage(JNIEnv *_env, jobject _this, RsContext con, jint id, jintArray data)
{
    jint *ptr = NULL;
    jint len = 0;
    if (data) {
        len = _env->GetArrayLength(data);
        jint *ptr = _env->GetIntArrayElements(data, NULL);
    }
    LOG_API("nContextSendMessage, con(%p), id(%i), len(%i)", con, id, len);
    dispatchTab.ContextSendMessage(con, id, (const uint8_t *)ptr, len * sizeof(int));
    if (data) {
        _env->ReleaseIntArrayElements(data, ptr, JNI_ABORT);
    }
}
开发者ID:anoop44,项目名称:platform_frameworks_support,代码行数:15,代码来源:android_renderscript_RenderScript.cpp


示例18: nScriptSetTimeZone

static void
nScriptSetTimeZone(JNIEnv *_env, jobject _this, RsContext con, jint script, jbyteArray timeZone)
{
    LOG_API("nScriptCSetTimeZone, con(%p), s(%p), timeZone(%s)", con, (void *)script, (const char *)timeZone);

    jint length = _env->GetArrayLength(timeZone);
    jbyte* timeZone_ptr;
    timeZone_ptr = (jbyte *) _env->GetPrimitiveArrayCritical(timeZone, (jboolean *)0);

    dispatchTab.ScriptSetTimeZone(con, (RsScript)script, (const char *)timeZone_ptr, length);

    if (timeZone_ptr) {
        _env->ReleasePrimitiveArrayCritical(timeZone, timeZone_ptr, 0);
    }
}
开发者ID:anoop44,项目名称:platform_frameworks_support,代码行数:15,代码来源:android_renderscript_RenderScript.cpp


示例19: nScriptCCreate

static jint
nScriptCCreate(JNIEnv *_env, jobject _this, RsContext con,
               jstring resName, jstring cacheDir,
               jbyteArray scriptRef, jint length)
{
    LOG_API("nScriptCCreate, con(%p)", con);

    AutoJavaStringToUTF8 resNameUTF(_env, resName);
    AutoJavaStringToUTF8 cacheDirUTF(_env, cacheDir);
    jint ret = 0;
    jbyte* script_ptr = NULL;
    jint _exception = 0;
    jint remaining;
    if (!scriptRef) {
        _exception = 1;
        //jniThrowException(_env, "java/lang/IllegalArgumentException", "script == null");
        goto exit;
    }
    if (length < 0) {
        _exception = 1;
        //jniThrowException(_env, "java/lang/IllegalArgumentException", "length < 0");
        goto exit;
    }
    remaining = _env->GetArrayLength(scriptRef);
    if (remaining < length) {
        _exception = 1;
        //jniThrowException(_env, "java/lang/IllegalArgumentException",
        //        "length > script.length - offset");
        goto exit;
    }
    script_ptr = (jbyte *)
        _env->GetPrimitiveArrayCritical(scriptRef, (jboolean *)0);

    //rsScriptCSetText(con, (const char *)script_ptr, length);

    ret = (jint)dispatchTab.ScriptCCreate(con,
                                resNameUTF.c_str(), resNameUTF.length(),
                                cacheDirUTF.c_str(), cacheDirUTF.length(),
                                (const char *)script_ptr, length);

exit:
    if (script_ptr) {
        _env->ReleasePrimitiveArrayCritical(scriptRef, script_ptr,
                _exception ? JNI_ABORT: 0);
    }

    return ret;
}
开发者ID:anoop44,项目名称:platform_frameworks_support,代码行数:48,代码来源:android_renderscript_RenderScript.cpp


示例20: LOG_API

int SingerList::keyPressEvent(QObject * obj, QKeyEvent * event)
{
    LOG_API();
    static QWidget * fakeFocus = singerIcon[0];
    int        new_idx = cur_idx;
    LOG_VERBOSE("cur hlt idx %d.\n", cur_idx);
    switch(event->key())
    {
        case Qt::Key_Select:
        case Qt::Key_Return:
            slotSingerSelected();
            return OK;
        case Qt::Key_Back:
        case Qt::Key_Escape:
            slotReturnButton();
            return OK;
        case Qt::Key_MediaPrevious:
            slotPagePrev();
            return OK;
        case Qt::Key_MediaNext:
            slotPageNext();
            return OK;
        case Qt::Key_Up:
            new_idx = abs(cur_idx-4)%8;
            break;
        case Qt::Key_Down:
            new_idx = (cur_idx+4)%8;
            break;
        case Qt::Key_Left:
            new_idx = abs(cur_idx-1)%8;
            break;
        case Qt::Key_Right:
            new_idx = (cur_idx+1)%8;
            break;
        default:
            break;
    }
    LOG_VERBOSE("new hlt idx %d.\n", new_idx);

    singerIcon[cur_idx]->highlight(false);
    singerIcon[new_idx]->highlight(true);
    fakeFocus = singerIcon[new_idx];
    cur_idx = new_idx;

    return OK;
}
开发者ID:shellohunter,项目名称:arakbew,代码行数:46,代码来源:SingerList.cpp



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ LOG_ASSERT函数代码示例发布时间:2022-05-30
下一篇:
C++ LOG_AND_THROW函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap