当前位置: 首页>>代码示例>>C++>>正文


C++ STUB函数代码示例

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


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

示例1: test__print_as_ascii_hex__does_nothing_else

static void test__print_as_ascii_hex__does_nothing_else()
{
	disable_auto_stubs();
	N_STUB(TEST_SIZE, xfprintf, 1);
	STUB(xfprintf, 1);
	CALL(print_as_ascii_hex(TEST_OUTPUT, TEST_BYTES, TEST_SIZE));
}
开发者ID:meuter,项目名称:mockme,代码行数:7,代码来源:demo_unit_test.c

示例2: ismounted

//static int ismounted (int hd)
//FIXME:
static int ismounted (FILE* f) {
    STUB("");
    int mounted;
    //mounted = 1;
    mounted = 0;
    return mounted;
}
开发者ID:adurdin,项目名称:fs-uae,代码行数:9,代码来源:hardfile_host.cpp

示例3: switch

OSStatus AudioConverter::setProperty(AudioConverterPropertyID inPropertyID, UInt32 inPropertyDataSize, const void *inPropertyData)
{
	switch (inPropertyID)
	{
		case kAudioConverterEncodeBitRate:
		{
			return setPropertyT(inPropertyDataSize, &m_outBitRate, inPropertyData);
		}
		case kAudioConverterInputChannelLayout:
		{
		}
		case kAudioConverterOutputChannelLayout:
		{
		}
		case kAudioConverterCurrentOutputStreamDescription:
		{
			return kAudioConverterErr_PropertyNotSupported;
			//return setPropertyT(inPropertyDataSize, &m_sourceFormat, inPropertyData);
		}
		case kAudioConverterCurrentInputStreamDescription:
		{
			return kAudioConverterErr_PropertyNotSupported;
			//return setPropertyT(inPropertyDataSize, &m_destinationFormat, inPropertyData);
		}
		default:
		{
			STUB();
			return kAudioConverterErr_PropertyNotSupported;
		}
	}
	
	return unimpErr;
}
开发者ID:colonist4096,项目名称:darling,代码行数:33,代码来源:AudioConverterImpl.cpp

示例4: NineSwapChain9_GetFrontBufferData

HRESULT WINAPI
NineSwapChain9_GetFrontBufferData( struct NineSwapChain9 *This,
                                   IDirect3DSurface9 *pDestSurface )
{
    /* TODO: GetFrontBuffer() and copy the contents */
    STUB(D3DERR_INVALIDCALL);
}
开发者ID:Thermionix,项目名称:Mesa-3D,代码行数:7,代码来源:swapchain9.c

示例5: platform_get_drives

int platform_get_drives(){
	/*
	return GetLogicalDrives();
	*/
	STUB();
	return 0;
}
开发者ID:janisozaur,项目名称:rct-release-test,代码行数:7,代码来源:linux.c

示例6: make_mock

END_TEST

make_mock (setsockopt, int,
           int sockfd, int level, int optname,
           const void *optval, socklen_t optlen)
{
  STUB (setsockopt, sockfd, level, optname, optval, optlen);
}
开发者ID:linearregression,项目名称:riemann-c-client,代码行数:8,代码来源:check_client.c

示例7: STUB

void Actor::Think_NoClip
	(
	void
	)

{
	// FIXME: stub
	STUB();
}
开发者ID:kingtiger01,项目名称:openmohaa-1,代码行数:9,代码来源:actor_noclip.cpp

示例8: STUB

void Actor::Think_Idle
	(
	void
	)

{
	// FIXME: stub
	STUB();
}
开发者ID:kingtiger01,项目名称:openmohaa-1,代码行数:9,代码来源:actor_idle.cpp

示例9: show_endscreen

void show_endscreen(display& /*disp*/, const t_string& /*text*/, unsigned int /*duration*/)
{
	STUB();
	LOG_NG << "show_endscreen() invoked...\n";

	config story_cfg;

	// FIXME: stub!

	LOG_NG << "show_endscreen() completed...\n";
}
开发者ID:asimonov-im,项目名称:wesnoth,代码行数:11,代码来源:interface.cpp

示例10: Nine9ExOverlayExtension_CheckDeviceOverlayType

HRESULT NINE_WINAPI
Nine9ExOverlayExtension_CheckDeviceOverlayType( struct Nine9ExOverlayExtension *This,
                                                UINT Adapter,
                                                D3DDEVTYPE DevType,
                                                UINT OverlayWidth,
                                                UINT OverlayHeight,
                                                D3DFORMAT OverlayFormat,
                                                D3DDISPLAYMODEEX *pDisplayMode,
                                                D3DDISPLAYROTATION DisplayRotation,
                                                D3DOVERLAYCAPS *pOverlayCaps )
{
    STUB(D3DERR_INVALIDCALL);
}
开发者ID:ChristophHaag,项目名称:mesa-mesa,代码行数:13,代码来源:nineexoverlayextension.c

示例11: main

/**
 * The function that is called directly from the host application (rct2.exe)'s WinMain. This will be removed when OpenRCT2 can
 * be built as a stand alone application.
 */
int main(int argc, const char **argv)
{
	//RCT2_GLOBAL(RCT2_ADDRESS_HINSTANCE, HINSTANCE) = hInstance;
	//RCT2_GLOBAL(RCT2_ADDRESS_CMDLINE, LPSTR) = lpCmdLine;

	STUB();
	int run_game = cmdline_run(argv, argc);
	if (run_game == 1)
	{
		openrct2_launch();
	}

	exit(gExitCode);
	return gExitCode;
}
开发者ID:janisozaur,项目名称:rct-release-test,代码行数:19,代码来源:linux.c

示例12: show_storyscreen

void show_storyscreen(display& disp, const vconfig& story_cfg, const std::string& scenario_name)
{
	LOG_NG << "entering storyscreen procedure...\n";

	storyscreen::controller ctl(disp, story_cfg, scenario_name);

	try {
		ctl.show();
	} catch(storyscreen::controller::quit const&) {
		LOG_NG << "leaving storyscreen for titlescreen...\n";
		STUB();
	}

	LOG_NG << "leaving storyscreen procedure...\n";
}
开发者ID:Yossarian,项目名称:WesnothAddonServer,代码行数:15,代码来源:interface.cpp

示例13: platform_get_locale_language

uint16 platform_get_locale_language(){
	/*
	CHAR langCode[4];

	if (GetLocaleInfo(LOCALE_USER_DEFAULT,
		LOCALE_SABBREVLANGNAME,
		(LPSTR)&langCode,
		sizeof(langCode)) == 0){
		return LANGUAGE_UNDEFINED;
	}

	if (strcmp(langCode, "ENG") == 0){
		return LANGUAGE_ENGLISH_UK;
	}
	else if (strcmp(langCode, "ENU") == 0){
		return LANGUAGE_ENGLISH_US;
	}
	else if (strcmp(langCode, "DEU") == 0){
		return LANGUAGE_GERMAN;
	}
	else if (strcmp(langCode, "NLD") == 0){
		return LANGUAGE_DUTCH;
	}
	else if (strcmp(langCode, "FRA") == 0){
		return LANGUAGE_FRENCH;
	}
	else if (strcmp(langCode, "HUN") == 0){
		return LANGUAGE_HUNGARIAN;
	}
	else if (strcmp(langCode, "PLK") == 0){
		return LANGUAGE_POLISH;
	}
	else if (strcmp(langCode, "ESP") == 0){
		return LANGUAGE_SPANISH;
	}
	else if (strcmp(langCode, "SVE") == 0){
		return LANGUAGE_SWEDISH;
	}
	else if (strcmp(langCode, "ITA") == 0){
		return LANGUAGE_ITALIAN;
	}
	else if (strcmp(langCode, "POR") == 0){
		return LANGUAGE_PORTUGUESE_BR;
	}
	*/
	STUB();
	return LANGUAGE_ENGLISH_UK;
}
开发者ID:janisozaur,项目名称:rct-release-test,代码行数:48,代码来源:linux.c

示例14: platform_get_locale_currency

uint8 platform_get_locale_currency(){
	/*
	CHAR currCode[4];

	if (GetLocaleInfo(LOCALE_USER_DEFAULT,
		LOCALE_SINTLSYMBOL,
		(LPSTR)&currCode,
		sizeof(currCode)) == 0){
		return CURRENCY_POUNDS;
	}
	if (strcmp(currCode, "GBP") == 0){
		return CURRENCY_POUNDS;
	}
	else if (strcmp(currCode, "USD") == 0){
		return CURRENCY_DOLLARS;
	}
	else if (strcmp(currCode, "EUR") == 0){
		return CURRENCY_EUROS;
	}
	else if (strcmp(currCode, "SEK") == 0){
		return CURRENCY_KRONA;
	}
	else if (strcmp(currCode, "DEM") == 0){
		return CURRENCY_DEUTSCHMARK;
	}
	else if (strcmp(currCode, "ITL") == 0){
		return CURRENCY_LIRA;
	}
	else if (strcmp(currCode, "JPY") == 0){
		return CURRENCY_YEN;
	}
	else if (strcmp(currCode, "ESP") == 0){
		return CURRENCY_PESETA;
	}
	else if (strcmp(currCode, "FRF") == 0){
		return CURRENCY_FRANC;
	}
	else if (strcmp(currCode, "NLG") == 0){
		return CURRENCY_GUILDERS;
	}
	*/
	STUB();
	return CURRENCY_POUNDS;
}
开发者ID:janisozaur,项目名称:rct-release-test,代码行数:44,代码来源:linux.c

示例15: platform_get_locale_measurement_format

uint8 platform_get_locale_measurement_format(){
	/*
	UINT measurement_system;
	if (GetLocaleInfo(LOCALE_USER_DEFAULT,
		LOCALE_IMEASURE | LOCALE_RETURN_NUMBER,
		(LPSTR)&measurement_system,
		sizeof(measurement_system)) == 0){
		return MEASUREMENT_FORMAT_IMPERIAL;
	}
	switch (measurement_system){
	case 0:
		return MEASUREMENT_FORMAT_METRIC;
	case 1:
	default:
		return MEASUREMENT_FORMAT_IMPERIAL;
	}*/
	STUB();
	return MEASUREMENT_FORMAT_METRIC;
}
开发者ID:janisozaur,项目名称:rct-release-test,代码行数:19,代码来源:linux.c


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