本文整理汇总了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));
}
示例2: ismounted
//static int ismounted (int hd)
//FIXME:
static int ismounted (FILE* f) {
STUB("");
int mounted;
//mounted = 1;
mounted = 0;
return mounted;
}
示例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;
}
示例4: NineSwapChain9_GetFrontBufferData
HRESULT WINAPI
NineSwapChain9_GetFrontBufferData( struct NineSwapChain9 *This,
IDirect3DSurface9 *pDestSurface )
{
/* TODO: GetFrontBuffer() and copy the contents */
STUB(D3DERR_INVALIDCALL);
}
示例5: platform_get_drives
int platform_get_drives(){
/*
return GetLogicalDrives();
*/
STUB();
return 0;
}
示例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);
}
示例7: STUB
void Actor::Think_NoClip
(
void
)
{
// FIXME: stub
STUB();
}
示例8: STUB
void Actor::Think_Idle
(
void
)
{
// FIXME: stub
STUB();
}
示例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";
}
示例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);
}
示例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;
}
示例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";
}
示例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;
}
示例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;
}
示例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;
}