这篇教程C++ IGNORE函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中IGNORE函数的典型用法代码示例。如果您正苦于以下问题:C++ IGNORE函数的具体用法?C++ IGNORE怎么用?C++ IGNORE使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了IGNORE函数的26个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: IGNORE/*ARGSUSED*/ void REGALWRATH_GLU_CALL glu_wrath_gl_noBeginData( WRATH_GLUenum type, int winding_number, void *polygonData ) { IGNORE(polygonData); IGNORE(type); IGNORE(winding_number); }
开发者ID:nomovok-opensource,项目名称:wrath,代码行数:7,
示例2: delete_qsovoid delete_qso(void) { int x; struct stat statbuf; int lfile; char logline[100]; char call[15], bandmode[6]; mvprintw(13, 29, "OK to delete last qso (y/n)?"); x = key_get(); if ((x == 'y') || (x == 'Y')) { if ((lfile = open(logfile, O_RDWR)) < 0) { TLF_LOG_WARN("I can not find the logfile..."); } else { fstat(lfile, &statbuf); if (statbuf.st_size >= LOGLINELEN) { if (qtcdirection > 0) { // read band, mode and call from last QSO line lseek(lfile, ((int)statbuf.st_size - LOGLINELEN), SEEK_SET); IGNORE(read(lfile, logline, LOGLINELEN - 1));; g_strlcpy(bandmode, logline, 6); g_strlcpy(call, logline + 29, 15); g_strchomp(call); // delete QTC's for that combination of band, mode and call delete_last_qtcs(call, bandmode); } IGNORE(ftruncate(lfile, statbuf.st_size - LOGLINELEN)); } fsync(lfile); close(lfile); if (qsos[nr_qsos][0] != ';') { band_score[bandinx]--; qsonum--; qsonr_to_str(); } nr_qsos--; qsos[nr_qsos][0] = '/0'; } scroll_log(); } attron(COLOR_PAIR(C_LOG) | A_STANDOUT); mvprintw(13, 29, " "); printcall(); clear_display();}
开发者ID:Tlf,项目名称:tlf,代码行数:60,
示例3: ctrl_semihosting_getthumbswistatic intctrl_semihosting_getthumbswi(p_Buffer * buffer, void *stateptr){#ifdef ICEMAN2 /* Reads the value of the semi-hosting vector. */ int debugID, OSinfo1, OSinfo2, subreason; word semihosting_thumbswi, status; IGNORE(stateptr); unpack_message(BUFFERDATA(*buffer) + 4, "%w%w%w%w", &debugID, &OSinfo1, &OSinfo2, &subreason); status = angelOS_SemiHosting_GetThumbSWI(OSinfo1, OSinfo2, &semihosting_thumbswi); LogInfo(LOG_CTRL, ("ctrl_semihosting_getthumbswi -> %08x/n", semihosting_thumbswi)); return msgsend(CI_HADP, "%w%w%w%w%w%w%w", (ADP_Control | TtoH), debugID, OSinfo1, OSinfo2, ADP_Ctrl_SemiHosting_GetThumbSWI, status, semihosting_thumbswi);#else IGNORE(buffer); IGNORE(stateptr); LogInfo(LOG_CTRL, ( "ctrl_semihosting_getthumbswi - unsupported/n")); return -1;#endif}
开发者ID:lawliet89,项目名称:pascal2arm,代码行数:32,
示例4: ctrl_settopmemstatic intctrl_settopmem(p_Buffer * buffer, void *stateptr){#ifdef ICEMAN2 /* Set the top of memory we report on a HEAPINFO SWI */ int debugID, OSinfo1, OSinfo2, subreason; word topmem; IGNORE(stateptr); unpack_message(BUFFERDATA(*buffer) + 4, "%w%w%w%w%w", &debugID, &OSinfo1, &OSinfo2, &subreason, &topmem); LogInfo(LOG_CTRL, ( "ctrl_settopmem(topmem = 0x%x)/n", topmem)); angel_SetTopMem((unsigned)topmem); return msgsend(CI_HADP, "%w%w%w%w%w%w", (ADP_Control | TtoH), debugID, OSinfo1, OSinfo2, ADP_Ctrl_SetTopMem, RDIError_NoError);#else IGNORE(buffer); IGNORE(stateptr); return -1;#endif}
开发者ID:lawliet89,项目名称:pascal2arm,代码行数:27,
示例5: IGNORE/*ARGSUSED*/ void REGALFASTUIDRAW_GLU_CALL glu_fastuidraw_gl_noBeginData( FASTUIDRAW_GLUenum type, int winding_number, void *polygonData ){ IGNORE(polygonData); IGNORE(type); IGNORE(winding_number);}
开发者ID:cjcappel,项目名称:fastuidraw,代码行数:7,
示例6: test_bad_write/* Callbacks for the write function. */static enum status test_bad_write(void * param, const void * src, size_t len) { IGNORE(param); IGNORE(src); IGNORE(len); return status_err;}
开发者ID:sw17ch,项目名称:inversion_demo,代码行数:8,
示例7: ctrl_semihosting_setarmswistatic intctrl_semihosting_setarmswi(p_Buffer * buffer, void *stateptr){#ifdef ICEMAN2 /* Set the semi-hosting ARM SWI. */ int debugID, OSinfo1, OSinfo2, subreason; word semihosting_armswi, status; IGNORE(stateptr); unpack_message(BUFFERDATA(*buffer) + 4, "%w%w%w%w%w", &debugID, &OSinfo1, &OSinfo2, &subreason, &semihosting_armswi); LogInfo(LOG_CTRL, ( "ctrl_semihosting_setarmswi(swi 0x%x)/n", semihosting_armswi)); status = angelOS_SemiHosting_SetARMSWI(OSinfo1, OSinfo2, semihosting_armswi); return msgsend(CI_HADP, "%w%w%w%w%w%w", (ADP_Control | TtoH), debugID, OSinfo1, OSinfo2, ADP_Ctrl_SemiHosting_SetARMSWI, status);#else IGNORE(buffer); IGNORE(stateptr); LogInfo(LOG_CTRL, ( "ctrl_semihosting_setarmswi -> unsupported/n")); return -1;#endif}
开发者ID:lawliet89,项目名称:pascal2arm,代码行数:30,
示例8: fbdev_lcd_crtc_mode_setstatic void fbdev_lcd_crtc_mode_set(xf86CrtcPtr crtc, DisplayModePtr mode, DisplayModePtr adjusted_mode, int x, int y){ IGNORE( crtc ); IGNORE( mode ); IGNORE( adjusted_mode ); IGNORE( x ); IGNORE( y );}
开发者ID:igloocommunity,项目名称:xorg-x11-drv-ste,代码行数:8,
示例9: fbdev_lcd_crtc_mode_fixupstatic Bool fbdev_lcd_crtc_mode_fixup(xf86CrtcPtr crtc, DisplayModePtr mode, DisplayModePtr adjusted_mode){ IGNORE( crtc ); IGNORE( mode ); IGNORE( adjusted_mode ); return TRUE;}
开发者ID:igloocommunity,项目名称:xorg-x11-drv-ste,代码行数:8,
示例10: maliSolidstatic void maliSolid(PixmapPtr pPixmap, int x1, int y1, int x2, int y2){ IGNORE(pPixmap); IGNORE(x1); IGNORE(y1); IGNORE(x2); IGNORE(y2);}
开发者ID:OtherCrashOverride,项目名称:c2_mali_ddx,代码行数:8,
示例11: fbdev_lcd_output_mode_fixupstatic Bool fbdev_lcd_output_mode_fixup(xf86OutputPtr output, DisplayModePtr mode, DisplayModePtr adjusted_mode){ IGNORE( output ); IGNORE( mode ); IGNORE( adjusted_mode ); return TRUE;}
开发者ID:igloocommunity,项目名称:xorg-x11-drv-ste,代码行数:8,
示例12: fbdev_lcd_crtc_gamma_setstatic void fbdev_lcd_crtc_gamma_set(xf86CrtcPtr crtc, CARD16 *red, CARD16 *green, CARD16 *blue, int size){ IGNORE( crtc ); IGNORE( red ); IGNORE( green ); IGNORE( blue ); IGNORE( size );}
开发者ID:igloocommunity,项目名称:xorg-x11-drv-ste,代码行数:8,
示例13: angel_NodevIntHandler/* * Function: angel_NodevIntHandler * Purpose: Place-holding interrupt function that reports an error * * Params: As described in devdriv.h * * Returns: This routine does not return */void angel_NodevIntHandler(unsigned int ident, unsigned int data, unsigned int empty_stack){ IGNORE(data); IGNORE(empty_stack); LogError(LOG_DEVMISC, ( "NodevIntHandler called: ident %d/n", ident));}
开发者ID:lawliet89,项目名称:pascal2arm,代码行数:17,
示例14: maliPrepareSolidstatic Bool maliPrepareSolid(PixmapPtr pPixmap, int alu, Pixel planemask, Pixel fg){ IGNORE(pPixmap); IGNORE(alu); IGNORE(planemask); IGNORE(fg); return FALSE;}
开发者ID:OtherCrashOverride,项目名称:c2_mali_ddx,代码行数:9,
示例15: maliCheckCompositestatic Bool maliCheckComposite(int op, PicturePtr pSrcPicture, PicturePtr pMaskPicture, PicturePtr pDstPicture){ IGNORE(op); IGNORE(pSrcPicture); IGNORE(pMaskPicture); IGNORE(pDstPicture); return FALSE;}
开发者ID:OtherCrashOverride,项目名称:c2_mali_ddx,代码行数:9,
示例16: prmatvoid prmat(void){ int i, j; struct elm *el; IGNORE(printf("/n/n ")); for (i=10 ; i <= neqn ; i += 10) IGNORE(printf(" %1d", (i%100)/10)); IGNORE(printf("/n ")); for (i=1 ; i <= neqn; i++) IGNORE(printf("%1d", i%10)); IGNORE(printf("/n/n")); for (i=1 ; i <= neqn ; i++) { IGNORE(printf("%3d ", i)); j = 0; for (el = rowst[i] ;el != ELM0 ; el = el->c_right) { for ( j++ ; j < el->col ; j++) IGNORE(putchar(' ')); IGNORE(putchar('*')); } IGNORE(putchar('/n')); }}
开发者ID:nrnhines,项目名称:nrn,代码行数:25,
示例17: maliCompositestatic void maliComposite(PixmapPtr pDstPixmap, int srcX, int srcY, int maskX, int maskY, int dstX, int dstY, int width, int height){ IGNORE(pDstPixmap); IGNORE(srcX); IGNORE(srcY); IGNORE(maskX); IGNORE(maskY); IGNORE(dstX); IGNORE(dstY); IGNORE(width); IGNORE(height);}
开发者ID:OtherCrashOverride,项目名称:c2_mali_ddx,代码行数:12,
示例18: Angel_ApplReceiveModevoid Angel_ApplReceiveMode(DevRecvMode mode){ /* does nothing in non-minimal system */ IGNORE(mode); return;}
开发者ID:lawliet89,项目名称:pascal2arm,代码行数:7,
示例19: ctrl_start_agentstatic intctrl_start_agent(p_Buffer * buffer, void *stateptr){ /* Decode an loadagent message */ int debugID, OSinfo1, OSinfo2, subreason, err; word startaddress; word status; IGNORE(stateptr); unpack_message(BUFFERDATA(*buffer) + 4, "%w%w%w%w%w", &debugID, &OSinfo1, &OSinfo2, &subreason, &startaddress); LogInfo(LOG_CTRL, ( "ctrl_start_agent(startaddress = %x)/n", startaddress)); if (loadagent_sofar == loadagent_size && startaddress >= loadagent_address && startaddress < (loadagent_address + loadagent_size)) status = RDIError_NoError; else status = RDIError_BadConfigData; err = msgsend(CI_HADP, "%w%w%w%w%w%w", (ADP_Control | TtoH), debugID, OSinfo1, OSinfo2, ADP_Ctrl_Start_Agent, status); if (err == RDIError_NoError && status == RDIError_NoError) angelOS_ExecuteNewAgent(startaddress); return err;}
开发者ID:lawliet89,项目名称:pascal2arm,代码行数:30,
示例20: ctrl_download_agentstatic intctrl_download_agent(p_Buffer * buffer, void *stateptr){ /* Decode an loadagent message */ int debugID, OSinfo1, OSinfo2, subreason; word loadaddress, nbytes; word status; IGNORE(stateptr); unpack_message(BUFFERDATA(*buffer) + 4, "%w%w%w%w%w%w", &debugID, &OSinfo1, &OSinfo2, &subreason, &loadaddress, &nbytes); LogInfo(LOG_CTRL, ( "ctrl_download_agent(loadadr = 0x%x, nbytes = %d)/n", loadaddress, nbytes)); status = angelOS_LoadAgent(OSinfo1, OSinfo2, loadaddress, nbytes); if (status == RDIError_NoError) { loadagent_address = loadaddress; loadagent_size = nbytes; loadagent_sofar = 0; } return msgsend(CI_HADP, "%w%w%w%w%w%w", (ADP_Control | TtoH), debugID, OSinfo1, OSinfo2, ADP_Ctrl_Download_Agent, status);}
开发者ID:lawliet89,项目名称:pascal2arm,代码行数:29,
示例21: ctrl_download_datastatic intctrl_download_data(p_Buffer * buffer, void *stateptr){ /* Decode an addconfig message */ int debugID, OSinfo1, OSinfo2, reason, subreason, count, err; word nbytes; word status; IGNORE(stateptr); count = unpack_message(BUFFERDATA(*buffer), "%w%w%w%w%w%w", &reason, &debugID, &OSinfo1, &OSinfo2, &subreason, &nbytes); LogInfo(LOG_CTRL, ( "ctrl_download_data(nbytes = %d)/n", nbytes)); status = angelOS_LoadConfigData(OSinfo1, OSinfo2, nbytes, BUFFERDATA(*buffer) + count); if (status == RDIError_NoError && loadagent_address != -1) loadagent_sofar += nbytes; /* We make sure we release the buffer here as it may be the long one */ angel_ChannelReleaseBuffer(*buffer); *buffer = NULL; err = msgsend(CI_HADP, "%w%w%w%w%w%w", (ADP_Control | TtoH), debugID, OSinfo1, OSinfo2, ADP_Ctrl_Download_Data, status); return err;}
开发者ID:lawliet89,项目名称:pascal2arm,代码行数:30,
示例22: ctrl_download_supportedstatic intctrl_download_supported(p_Buffer * buffer, void *stateptr){ int debugID, OSinfo1, OSinfo2; /* For Angel return CantLoadConfig - we can't do that * for EmbeddedICE (ICEman) say we can * for EICEADP - the ADP over JTAG software say we can't */#if defined(ICEMAN2) && !defined(JTAG_ADP_SUPPORTED) word status = RDIError_NoError;#else word status = RDIError_CantLoadConfig;#endif IGNORE(stateptr); LogInfo(LOG_CTRL, ( "ctrl_download_supported -> %d/n", status)); unpack_message(BUFFERDATA(*buffer) + 4, "%w%w%w", &debugID, &OSinfo1, &OSinfo2); return msgsend(CI_HADP, "%w%w%w%w%w%w", (ADP_Control | TtoH), debugID, OSinfo1, OSinfo2, ADP_Ctrl_Download_Supported, status);}
开发者ID:lawliet89,项目名称:pascal2arm,代码行数:29,
示例23: IGNOREstatic char *add_strerror(char *message, int last_errno){ if (last_errno == 0) return message; else { /* This is very annoying: strerror() is not not necessarily thread * safe ... but not for any compelling reason, see: * http://sources.redhat.com/ml/glibc-bugs/2005-11/msg00101.html * and the rather unhelpful reply: * http://sources.redhat.com/ml/glibc-bugs/2005-11/msg00108.html * * On the other hand, the recommended routine strerror_r() is * inconsistently defined -- depending on the precise library and its * configuration, it returns either an int or a char*. Oh dear. * * Ah well. We go with the GNU definition, so here is a buffer to * maybe use for the message. */ char StrError[64]; char *result; IGNORE(asprintf(&result, "%s: (%d) %s", message, last_errno, strerror_r(last_errno, StrError, sizeof(StrError)))); free(message); return result; }}
开发者ID:Araneidae,项目名称:fa-archiver,代码行数:26,
示例24: usb_register_callbackvoid usb_register_callback(struct usb_sock_t *usb){ IGNORE(usb); int status = libusb_hotplug_register_callback( NULL, LIBUSB_HOTPLUG_EVENT_DEVICE_LEFT, // Note: libusb's enum has no default value // a bug has been filled with libusb. // Please switch the below line to 0 // once the issue has been fixed in // deployed versions of libusb // https://github.com/libusb/libusb/issues/35 // 0, LIBUSB_HOTPLUG_ENUMERATE, g_options.vendor_id, g_options.product_id, LIBUSB_HOTPLUG_MATCH_ANY, &usb_exit_on_unplug, NULL, NULL); if (status == LIBUSB_SUCCESS) { pthread_t thread_handle; pthread_create(&thread_handle, NULL, &usb_pump_events, NULL); NOTE("Registered unplug callback"); } else ERR("Failed to register unplug callback");}
开发者ID:GalliumOS,项目名称:cups-filters,代码行数:28,
示例25: angel_DD_RxEng_BufferAlloc/* * This can be used as the buffer allocation callback for the rx engine, * and makes use of angel_DD_GetBuffer() [in devdrv.h]. * * Saves duplicating this callback function in every device driver that * uses the rx engine. * * Note that this REQUIRES that the device id is installed as ba_data * in the rx engine config structure for the driver. */bool angel_DD_RxEng_BufferAlloc( struct data_packet *packet, void *cb_data ){#ifdef TARGET DeviceID devid = (DeviceID)cb_data;#else IGNORE(cb_data);#endif if ( packet->type < DC_NUM_CHANNELS ) { /* request a buffer down from the channels layer */#ifdef TARGET packet->data = angel_DD_GetBuffer( devid, packet->type, packet->len );#else packet->data = malloc(packet->len);#endif if ( packet->data == NULL ) return FALSE; else { packet->buf_len = packet->len; return TRUE; } } else { /* bad type field */ return FALSE; }}
开发者ID:kjseefried,项目名称:pm3,代码行数:41,
示例26: logadp_PreWarnbool logadp_PreWarn(WarnLevel level){ IGNORE(level); if ( ! boot_completed ) return FALSE; if ( logadp_buf != NULL ) return FALSE; /* busy */ if ( ! logadp_inUSRmode() ) return FALSE; logadp_buf = angel_ChannelAllocBuffer( Angel_ChanBuffSize ); if (logadp_buf != NULL) { char *prefix = LOGADP_PREFIX_STR; logadp_pos = (char *)logadp_buf; logadp_end = (char *)(logadp_buf + Angel_ChanBuffSize - 1); while ( (*logadp_pos++ = *prefix++) != '/0' ) /* classic strcpy, no body required */ ; return TRUE; } else return FALSE;}
开发者ID:lawliet89,项目名称:pascal2arm,代码行数:29,
注:本文中的IGNORE函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ IGRAPH_CHECK函数代码示例 C++ IF_PRINT_WARNING函数代码示例 |