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

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

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

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

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

示例1: ecore_animator_del

EAPI void *ecore_animator_del(Ecore_Animator *animator){   void *data = NULL;   EINA_MAIN_LOOP_CHECK_RETURN_VAL(NULL);   _ecore_lock();   if (!ECORE_MAGIC_CHECK(animator, ECORE_MAGIC_ANIMATOR))     {        ECORE_MAGIC_FAIL(animator, ECORE_MAGIC_ANIMATOR,                         "ecore_animator_del");        goto unlock;     }   if (animator->delete_me)     {        data = animator->data;        goto unlock;     }   animator->delete_me = EINA_TRUE;   animators_delete_me++;   if (animator->run_func)     data = animator->run_data;   else     data = animator->data;unlock:   _ecore_unlock();   return data;}
开发者ID:wargio,项目名称:e17,代码行数:28,


示例2: ecore_timer_pending_get

/** * Get the pending time regarding a timer. * * @param        timer The timer to learn from. * @ingroup        Ecore_Time_Group */EAPI doubleecore_timer_pending_get(Ecore_Timer *timer){   double now;   double ret = 0.0;   _ecore_lock();   if (!ECORE_MAGIC_CHECK(timer, ECORE_MAGIC_TIMER))     {        ECORE_MAGIC_FAIL(timer, ECORE_MAGIC_TIMER,                         "ecore_timer_pending_get");        goto unlock;     }   now = ecore_time_get();   if (timer->frozen)     ret = timer->pending;   else     ret = timer->at - now;unlock:   _ecore_unlock();   return ret;}
开发者ID:roman5566,项目名称:EFL-PS3,代码行数:31,


示例3: ecore_timer_thaw

/** * Resumes a frozen (paused) timer. * * @param timer The timer to be resumed. * * The timer will be resumed from its previous relative position in time. That * means, if it had X seconds remaining until expire when it was paused, it will * be started now with those same X seconds remaining to expire again. But * notice that the interval time won't be touched by this call or by * ecore_timer_freeze(). * * @see ecore_timer_freeze() */EAPI voidecore_timer_thaw(Ecore_Timer *timer){   double now;   _ecore_lock();   if (!ECORE_MAGIC_CHECK(timer, ECORE_MAGIC_TIMER))     {        ECORE_MAGIC_FAIL(timer, ECORE_MAGIC_TIMER,                         "ecore_timer_thaw");        goto unlock;     }   /* Timer not frozen */   if (!timer->frozen)     goto unlock;   suspended = (Ecore_Timer *)eina_inlist_remove(EINA_INLIST_GET(suspended), EINA_INLIST_GET(timer));   now = ecore_time_get();   _ecore_timer_set(timer, timer->pending + now, timer->in, timer->func, timer->data);unlock:   _ecore_unlock();}
开发者ID:roman5566,项目名称:EFL-PS3,代码行数:38,


示例4: ecore_con_url_http_post_send

/** * Send a Curl httppost  * @return 1 on success, 0 on error. * @ingroup Ecore_Con_Url_Group */EAPI intecore_con_url_http_post_send(Ecore_Con_Url *url_con, void *httppost){#ifdef HAVE_CURL  if (url_con->post)    curl_formfree(url_con->post);  url_con->post = NULL;  if (!ECORE_MAGIC_CHECK(url_con, ECORE_MAGIC_CON_URL))    {      ECORE_MAGIC_FAIL(url_con, ECORE_MAGIC_CON_URL, "ecore_con_url_http_post_send");      return 0;    }  url_con->post = httppost;    if (url_con->active) return 0;  if (!url_con->url) return 0;      curl_easy_setopt(url_con->curl_easy, CURLOPT_HTTPPOST, httppost);    return ecore_con_url_send(url_con, NULL, 0, NULL);#else  return 0;  url_con = NULL;#endif}
开发者ID:OpenInkpot-archive,项目名称:ecore,代码行数:32,


示例5: ecore_con_url_url_set

/** * Sets the URL to send the request to. * * @param url_con Connection object through which the request will be sent. * @param url URL that will receive the request * * @return 1 on success, 0 on error. * * @ingroup Ecore_Con_Url_Group */EAPI intecore_con_url_url_set(Ecore_Con_Url *url_con, const char *url){#ifdef HAVE_CURL   if (!ECORE_MAGIC_CHECK(url_con, ECORE_MAGIC_CON_URL))     {	ECORE_MAGIC_FAIL(url_con, ECORE_MAGIC_CON_URL, "ecore_con_url_url_set");	return 0;     }   if (url_con->active) return 0;   if (url_con->url) free(url_con->url);   url_con->url = NULL;   if (url) url_con->url = strdup(url);   if (url_con->url)     curl_easy_setopt(url_con->curl_easy, CURLOPT_URL, url_con->url);   else     curl_easy_setopt(url_con->curl_easy, CURLOPT_URL, "");   return 1;#else   return 0;   url_con = NULL;   url = NULL;#endif}
开发者ID:OpenInkpot-archive,项目名称:ecore,代码行数:36,


示例6: ecore_con_url_httpauth_set

/** * Sets url_con to use http auth, with given username and password, "safely" or not. * * @param url_con Connection object to perform a request on, previously created *		  with ecore_con_url_new() or ecore_con_url_custom_new(). * @param username Username to use in authentication * @param password Password to use in authentication * @param safe Whether to use "safer" methods (eg, NOT http basic auth) * * @return 1 on success, 0 on error. * * @ingroup Ecore_Con_Url_Group */EAPI intecore_con_url_httpauth_set(Ecore_Con_Url *url_con, const char *username, const char *password, Eina_Bool safe){#ifdef HAVE_CURL   if (!ECORE_MAGIC_CHECK(url_con, ECORE_MAGIC_CON_URL))     {	ECORE_MAGIC_FAIL(url_con, ECORE_MAGIC_CON_URL, "ecore_con_url_httpauth_set");	return 0;     }# ifdef CURLOPT_USERNAME#  ifdef CURLOPT_PASSWORD      if ((username != NULL) && (password != NULL))     {	if (safe)          curl_easy_setopt(url_con->curl_easy, CURLOPT_HTTPAUTH, CURLAUTH_ANYSAFE);	else          curl_easy_setopt(url_con->curl_easy, CURLOPT_HTTPAUTH, CURLAUTH_ANY);	curl_easy_setopt(url_con->curl_easy, CURLOPT_USERNAME, username);	curl_easy_setopt(url_con->curl_easy, CURLOPT_PASSWORD, password);        return 1;     }#  endif# endif#endif   return 0;}
开发者ID:OpenInkpot-archive,项目名称:ecore,代码行数:39,


示例7: ecore_imf_context_del

EAPI voidecore_imf_context_del(Ecore_IMF_Context *ctx){   Ecore_IMF_Func_Node *fn;   if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))     {        ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,                         "ecore_imf_context_del");        return;     }   if (show_req_ctx == ctx)     show_req_ctx = NULL;   if (ctx->klass->del) ctx->klass->del(ctx);   if (ctx->callbacks)     {        EINA_LIST_FREE(ctx->callbacks, fn)           free(fn);     }   if (ctx->input_panel_callbacks)     {        EINA_LIST_FREE(ctx->input_panel_callbacks, fn)           free(fn);     }   ECORE_MAGIC_SET(ctx, ECORE_MAGIC_NONE);   free(ctx);}
开发者ID:caivega,项目名称:efl-1,代码行数:32,


示例8: ecore_exe_free

EAPI void *ecore_exe_free(Ecore_Exe *exe){   void *data;   if (!ECORE_MAGIC_CHECK(exe, ECORE_MAGIC_EXE))     {        ECORE_MAGIC_FAIL(exe, ECORE_MAGIC_EXE, "ecore_exe_free");        return NULL;     }   data = exe->data;   if (exe->pre_free_cb)     exe->pre_free_cb(data, exe);   CloseHandle(exe->process2);   CloseHandle(exe->process_thread);   CloseHandle(exe->process);   free(exe->cmd);   _ecore_exe_win32_pipes_close(exe);   exes = (Ecore_Exe *)eina_inlist_remove(EINA_INLIST_GET(exes), EINA_INLIST_GET(exe));   ECORE_MAGIC_SET(exe, ECORE_MAGIC_NONE);   if (exe->tag) free(exe->tag);   free(exe);   return data;}
开发者ID:Limsik,项目名称:e17,代码行数:28,


示例9: ecore_timer_interval_set

/** * Change the interval the timer ticks of. If set during * a timer call, this will affect the next interval. * * @param   timer The timer to change. * @param   in    The interval in seconds. * @ingroup Ecore_Time_Group */EAPI void ecore_timer_interval_set(Ecore_Timer * timer, double in){	if (!ECORE_MAGIC_CHECK(timer, ECORE_MAGIC_TIMER)) {		ECORE_MAGIC_FAIL(timer, ECORE_MAGIC_TIMER,				 "ecore_timer_interval_set");		return;	}	timer->in = in;}
开发者ID:Distrotech,项目名称:gnutls,代码行数:17,


示例10: ecore_timer_interval_get

/** * Get the interval the timer ticks on. * * @param   timer The timer to retrieve the interval from * @return  The interval on success. -1 on failure. * @ingroup Ecore_Time_Group */EAPI double ecore_timer_interval_get(Ecore_Timer * timer){	if (!ECORE_MAGIC_CHECK(timer, ECORE_MAGIC_TIMER)) {		ECORE_MAGIC_FAIL(timer, ECORE_MAGIC_TIMER,				 "ecore_timer_interval_get");		return -1.0;	}	return timer->in;}
开发者ID:Distrotech,项目名称:gnutls,代码行数:17,


示例11: ecore_exe_flags_get

EAPI Ecore_Exe_Flagsecore_exe_flags_get(const Ecore_Exe *exe){   if (!ECORE_MAGIC_CHECK(exe, ECORE_MAGIC_EXE))     {        ECORE_MAGIC_FAIL(exe, ECORE_MAGIC_EXE, "ecore_exe_data_get");        return 0;     }   return exe->flags;}
开发者ID:Limsik,项目名称:e17,代码行数:10,


示例12: ecore_exe_data_get

EAPI void *ecore_exe_data_get(const Ecore_Exe *exe){   if (!ECORE_MAGIC_CHECK(exe, ECORE_MAGIC_EXE))     {        ECORE_MAGIC_FAIL(exe, ECORE_MAGIC_EXE, "ecore_exe_data_get");        return NULL;     }   return exe->data;}
开发者ID:Limsik,项目名称:e17,代码行数:10,


示例13: ecore_exe_cmd_get

EAPI const char *ecore_exe_cmd_get(const Ecore_Exe *exe){   if (!ECORE_MAGIC_CHECK(exe, ECORE_MAGIC_EXE))     {        ECORE_MAGIC_FAIL(exe, ECORE_MAGIC_EXE, "ecore_exe_cmd_get");        return NULL;     }   return exe->cmd;}
开发者ID:Limsik,项目名称:e17,代码行数:10,


示例14: ecore_exe_pid_get

EAPI pid_tecore_exe_pid_get(const Ecore_Exe *exe){   if (!ECORE_MAGIC_CHECK(exe, ECORE_MAGIC_EXE))     {        ECORE_MAGIC_FAIL(exe, ECORE_MAGIC_EXE, "ecore_exe_pid_get");        return -1;     }   return exe->process_id;}
开发者ID:Limsik,项目名称:e17,代码行数:10,


示例15: ecore_exe_close_stdin

EAPI voidecore_exe_close_stdin(Ecore_Exe *exe){   if (!ECORE_MAGIC_CHECK(exe, ECORE_MAGIC_EXE))     {        ECORE_MAGIC_FAIL(exe, ECORE_MAGIC_EXE, "ecore_exe_close_stdin");        return;     }   exe->close_stdin = 1;}
开发者ID:Limsik,项目名称:e17,代码行数:10,


示例16: ecore_pipe_write_close

/** * Close the write end of an Ecore_Pipe object created with ecore_pipe_add(). * * @param p The Ecore_Pipe object. * @ingroup Ecore_Pipe_Group */EAPI void ecore_pipe_write_close(Ecore_Pipe * p){	if (!ECORE_MAGIC_CHECK(p, ECORE_MAGIC_PIPE)) {		ECORE_MAGIC_FAIL(p, ECORE_MAGIC_PIPE,				 "ecore_pipe_write_close");		return;	}	pipe_close(p->fd_write);	p->fd_write = PIPE_FD_INVALID;}
开发者ID:Distrotech,项目名称:gnutls,代码行数:16,


示例17: ecore_con_url_ftp_upload

/** * Makes a FTP upload * @return  FIXME: To be more documented. * @ingroup Ecore_Con_Url_Group */EAPI intecore_con_url_ftp_upload(Ecore_Con_Url *url_con, const char *filename, const char *user, const char *pass, const char *upload_dir){#ifdef HAVE_CURL   char url[4096];   char userpwd[4096];   FILE *fd;   struct stat file_info;   if (!ECORE_MAGIC_CHECK(url_con, ECORE_MAGIC_CON_URL))     {	ECORE_MAGIC_FAIL(url_con, ECORE_MAGIC_CON_URL, "ecore_con_url_ftp_upload");	return 0;     }   if (url_con->active) return 0;   if (!url_con->url) return 0;   if (filename)     {	char tmp[PATH_MAX];	snprintf(tmp, PATH_MAX, "%s", filename);	if (stat(filename, &file_info)) return 0;	fd = fopen(filename, "rb");	if (upload_dir)	   snprintf(url, sizeof(url), "ftp://%s/%s/%s", url_con->url,                     upload_dir, basename(tmp));	else	   snprintf(url, sizeof(url), "ftp://%s/%s", url_con->url,                     basename(tmp));	snprintf(userpwd, sizeof(userpwd), "%s:%s", user, pass);	curl_easy_setopt(url_con->curl_easy, CURLOPT_INFILESIZE_LARGE,                          (curl_off_t)file_info.st_size);	curl_easy_setopt(url_con->curl_easy, CURLOPT_USERPWD, userpwd);	curl_easy_setopt(url_con->curl_easy, CURLOPT_UPLOAD, 1);	curl_easy_setopt(url_con->curl_easy, CURLOPT_READFUNCTION,                          _ecore_con_url_read_cb);	curl_easy_setopt(url_con->curl_easy, CURLOPT_READDATA, fd);	ecore_con_url_url_set(url_con, url);	return _ecore_con_url_perform(url_con);     }   else     return 0;#else   return 0;   url_con = NULL;   filename = NULL;   user = NULL;   pass = NULL;   upload_dir = NULL;#endif}
开发者ID:OpenInkpot-archive,项目名称:ecore,代码行数:59,


示例18: ecore_imf_context_info_get

EAPI const Ecore_IMF_Context_Info *ecore_imf_context_info_get(Ecore_IMF_Context *ctx){   if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))     {        ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,                         "ecore_imf_context_info_get");        return NULL;     }   return ctx->module->info;}
开发者ID:caivega,项目名称:efl-1,代码行数:11,


示例19: ecore_imf_context_data_set

EAPI voidecore_imf_context_data_set(Ecore_IMF_Context *ctx, void *data){   if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))     {        ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,                         "ecore_imf_context_data_set");        return;     }   ctx->data = data;}
开发者ID:caivega,项目名称:efl-1,代码行数:11,


示例20: ecore_imf_context_use_preedit_set

EAPI voidecore_imf_context_use_preedit_set(Ecore_IMF_Context *ctx, Eina_Bool use_preedit){   if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))     {        ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,                         "ecore_imf_context_use_preedit_set");        return;     }   if (ctx->klass->use_preedit_set) ctx->klass->use_preedit_set(ctx, use_preedit);}
开发者ID:caivega,项目名称:efl-1,代码行数:11,


示例21: ecore_imf_context_input_mode_get

EAPI Ecore_IMF_Input_Modeecore_imf_context_input_mode_get(Ecore_IMF_Context *ctx){   if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))     {        ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,                         "ecore_imf_context_input_mode_set");        return 0;     }   return ctx->input_mode;}
开发者ID:caivega,项目名称:efl-1,代码行数:11,


示例22: ecore_imf_context_cursor_location_set

EAPI voidecore_imf_context_cursor_location_set(Ecore_IMF_Context *ctx, int x, int y, int w, int h){   if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))     {        ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,                         "ecore_imf_context_cursor_location_set");        return;     }   if (ctx->klass->cursor_location_set) ctx->klass->cursor_location_set(ctx, x, y, w, h);}
开发者ID:caivega,项目名称:efl-1,代码行数:11,


示例23: ecore_imf_context_cursor_position_set

EAPI voidecore_imf_context_cursor_position_set(Ecore_IMF_Context *ctx, int cursor_pos){   if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))     {        ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,                         "ecore_imf_context_cursor_position_set");        return;     }   if (ctx->klass->cursor_position_set) ctx->klass->cursor_position_set(ctx, cursor_pos);}
开发者ID:caivega,项目名称:efl-1,代码行数:11,


示例24: ecore_imf_context_reset

EAPI voidecore_imf_context_reset(Ecore_IMF_Context *ctx){   if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))     {        ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,                         "ecore_imf_context_reset");        return;     }   if (ctx->klass->reset) ctx->klass->reset(ctx);}
开发者ID:caivega,项目名称:efl-1,代码行数:11,


示例25: ecore_imf_context_focus_in

EAPI voidecore_imf_context_focus_in(Ecore_IMF_Context *ctx){   if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))     {        ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,                         "ecore_imf_context_focus_in");        return;     }   if (ctx->klass->focus_in) ctx->klass->focus_in(ctx);}
开发者ID:caivega,项目名称:efl-1,代码行数:11,


示例26: ecore_imf_context_client_window_get

EAPI void *ecore_imf_context_client_window_get(Ecore_IMF_Context *ctx){   if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))     {        ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,                         "ecore_imf_context_client_window_get");        return NULL;     }   return ctx->window;}
开发者ID:caivega,项目名称:efl-1,代码行数:11,



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


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