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


C++ SPEW函数代码示例

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


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

示例1: SPEW

bool
Matrix4D::TestClass()
{
	SPEW((GROUP_STUFF_TEST, "Starting Matrix4D test...\n"));
	SPEW((GROUP_STUFF_TEST, "  Matrix4D::TestClass() is stubbed out!"));
	return false;
}
开发者ID:BobrDobr69,项目名称:mechcommander2,代码行数:7,代码来源:matrix_test.cpp

示例2: SPEW

bool
	Normal3D::TestClass()
{
	SPEW((GROUP_STUFF_TEST, "Starting Normal3D Test...\n"));
	SPEW((GROUP_STUFF_TEST, "  Normal3D::TestClass() is stubbed out!\n"));
	return false;
}
开发者ID:Ariemeth,项目名称:MechCommander2HD,代码行数:7,代码来源:normal_test.cpp

示例3: tps6105x_attr_store_avin

static ssize_t
tps6105x_attr_store_avin(struct device *dev, struct device_attribute *attr,
				const char *buf, size_t count)
{
	int rc;
	int avin;
	struct i2c_client *i2c = to_i2c_client(dev);
	struct tps6105x_client_data *data = i2c_get_clientdata(i2c);

	SPEW(1, "+++ %s: buf=%s\n", __func__, buf);

	if (!sscanf(buf, "%d", &avin)) {
		rc = -EINVAL;
		goto exit;
	}

	if ((rc = tps6105x_enable_avin(data, !!avin)))
		goto exit;

	rc = count;
exit:
	SPEW(1, "--- %s: rc=%d\n", __func__, rc);

	return (rc);
}
开发者ID:mozyg,项目名称:kernel,代码行数:25,代码来源:leds-tps6105x.c

示例4: tps6105x_attribute_show

static ssize_t
tps6105x_attribute_show(struct device *dev, struct device_attribute *_attr,
			char *buf)
{
	u8 val;
	int i;
	ssize_t rc;
	struct i2c_client *i2c = to_i2c_client(dev);
	struct tps6105x_attribute *attr = (struct tps6105x_attribute *)_attr;

	SPEW(1, "--> %s: attr=%s\n", __func__, _attr->attr.name);

	if ((rc = tps6105x_i2c_read_u8(i2c, attr->index, &val)))
		goto exit;

	for (i = 0, rc = 0; i < attr->count; ++i) {
		rc += snprintf(buf + rc, PAGE_SIZE - rc, "%s%s",
				attr->values[i].desc,
				attr->values[i].val == (attr->mask & val)
					? "* " : " ");
	}

	rc += snprintf(buf + rc, PAGE_SIZE - rc, "\n");

exit:
	SPEW(1, "<-- %s: rc=%d\n", __func__, rc);

	return (rc);
}
开发者ID:mozyg,项目名称:kernel,代码行数:29,代码来源:leds-tps6105x.c

示例5: SPEW

nsresult
compzillaWindow::GetUTF8StringProperty (Atom prop, nsACString& utf8Value)
{
    SPEW ("GetUTF8StringProperty this=%p, prop=%s\n", this, XGetAtomName (mDisplay, prop));

    Atom actual_type;
    int format;
    unsigned long nitems;
    unsigned long bytes_after_return;
    unsigned char *data;

    if (XGetWindowProperty (mDisplay, 
                            mWindow, 
                            prop,
                            0,
                            BUFSIZ, 
                            false, 
                            AnyPropertyType,
                            &actual_type, 
                            &format, 
                            &nitems, 
                            &bytes_after_return, 
                            &data) != Success || 
        format == None) {
        SPEW (" + (Not Found)\n");
        return NS_ERROR_FAILURE;
    }

    if (actual_type == atoms.x.UTF8_STRING) {
        utf8Value = (char*)data;
    }
    else if (actual_type == XA_STRING) {
        char **list = NULL;
        int count;

        count = gdk_text_property_to_utf8_list (gdk_x11_xatom_to_atom (actual_type),
                                                format, data, nitems,
                                                &list);

        if (count == 0) {
            XFree (data);
            return NS_ERROR_FAILURE;
        }

        utf8Value = list[0];

        g_strfreev (list);
    }
    else {
        WARNING ("invalid type for string property '%s': '%s'\n",
                 XGetAtomName (mDisplay, prop),
                 XGetAtomName (mDisplay, actual_type));
        XFree (data);
        return NS_ERROR_FAILURE;
    }

    XFree (data);

    return NS_OK;
}
开发者ID:orph,项目名称:pyro,代码行数:60,代码来源:compzillaWindow.cpp

示例6: SPEW

bool
Ray3D::TestClass()
{
	SPEW((GROUP_STUFF_TEST, "Starting Ray3D test..."));
	SPEW((GROUP_STUFF_TEST, "  Ray3D::TestClass is stubbed out!"));
	return true;
}
开发者ID:BobrDobr69,项目名称:mechcommander2,代码行数:7,代码来源:ray_test.cpp

示例7: alloc_page_from_arena

static PageInfo*
alloc_page_from_arena(Arena *arena, size_t cell_size)
{
    void *page_data = (void*)ALIGN(arena->pos, PAGE_SIZE);
    if (arena->free_pages) {
        PageInfo* info = arena->free_pages;
        EJS_LIST_DETACH(info, arena->free_pages);
        info->cell_size = cell_size;
        info->num_cells = CELLS_OF_SIZE(cell_size);
        info->num_free_cells = info->num_cells;
        info->bump_ptr = info->page_start;
        memset (info->page_bitmap, CELL_FREE, info->num_cells * sizeof(BitmapCell));
        SPEW(3, _ejs_log ("alloc_page_from_arena from free pages for cell size %zd = %p\n", info->cell_size, info));
        return info;
    }
    else if (page_data < arena->end) {
        PageInfo* info = alloc_page_info_from_arena (arena, page_data, cell_size);
        int page_idx = arena->num_pages++;
        arena->pos = page_data + PAGE_SIZE;
        arena->pages[page_idx] = page_data;
        arena->page_infos[page_idx] = info;
        SPEW(3, _ejs_log ("alloc_page_from_arena from bump pointer for cell size %zd = %p\n", info->cell_size, info));
        return info;
    }
    else {
        return NULL;
    }
}
开发者ID:gongfuPanada,项目名称:echo-js,代码行数:28,代码来源:ejs-gc.c

示例8: ThreadedNode

DtkShmMove::DtkShmMove() :
    ThreadedNode() 
{
    SPEW();
    // Add external route
    addExternalRoute("*", "{NamespaceLabel}/{SlotLabel}");
    SPEW();
}
开发者ID:lanceman2,项目名称:instantRealityTutorial,代码行数:8,代码来源:dtkShmMove.cpp

示例9: Check_Object

		//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
		//
		void
			BitTrace::PrintUsage(Scalar usage)
		{
			Check_Object(this);

			SPEW((GROUP_STUFF_TRACE, "%4f%% CPU+", (usage*100.0f)));
			#if defined(USE_ACTIVE_PROFILE)
			SPEW((GROUP_STUFF_TRACE, " (active on line %d)", static_cast<int>(activeLine)));
			#endif
		}
开发者ID:Ariemeth,项目名称:MechCommander2HD,代码行数:12,代码来源:Trace.cpp

示例10: Spew

	void
		Spew(
			const char* group,
			const YawPitchRange &angle
		)
	{
		SPEW((group, "<+"));
		Spew(group, angle.yaw);
		SPEW((group, ",+"));
		Spew(group, angle.pitch);
		SPEW((group, "; %f+", angle.range));
	}
开发者ID:Ariemeth,项目名称:MechCommander2HD,代码行数:12,代码来源:polar.cpp

示例11: NS_ASSERT_OWNINGTHREAD

compzillaWindow::~compzillaWindow()
{
    NS_ASSERT_OWNINGTHREAD(compzillaWindow);

    SPEW ("~compzillaWindow %p, xid=%p\n", this, mWindow);

    Destroyed ();

    // FIXME: Do we need this?
    //UnredirectWindow ();

    SPEW ("~compzillaWindow DONE\n");
}
开发者ID:orph,项目名称:pyro,代码行数:13,代码来源:compzillaWindow.cpp

示例12: tps6105x_i2c_suspend

static int
tps6105x_i2c_suspend(struct i2c_client *i2c, pm_message_t mesg)
{
	struct tps6105x_client_data *data = i2c_get_clientdata(i2c);

	SPEW(1, "--> %s: event=%d\n", __func__, mesg.event);

	if (PM_EVENT_SUSPEND == mesg.event)
		(void)tps6105x_enable_avin(data, 0);

	SPEW(1, "<-- %s\n", __func__);

	return (0);
}
开发者ID:mozyg,项目名称:kernel,代码行数:14,代码来源:leds-tps6105x.c

示例13: Spew

	void
		Spew(
			const char* group,
			const EulerAngles &angle
		)
	{
		Check_Object(&angle);
		SPEW((group, "<+"));
		Spew(group, angle.pitch);
		SPEW((group, ",+"));
		Spew(group, angle.yaw);
		SPEW((group, ",+"));
		Spew(group, angle.roll);
		SPEW((group, ">+"));
	}
开发者ID:wolfman-x,项目名称:mechcommander2,代码行数:15,代码来源:rotation.cpp

示例14: SPEW

//
//#############################################################################
//#############################################################################
//
bool
	Degree::TestClass()
{
	SPEW((GROUP_STUFF_TEST, "Starting Degree test..."));

	const Degree a(Degrees_Per_Radian);
	Degree
		b,c;

	Radian
		r(1.0f),s;

	s = a;
	Test_Assumption(r == s);
	b = r;
	s = b;
#if 0
	Test_Assumption(r == s);
#endif
	c = Degrees_Per_Radian;
	s = c;
#if 0
	Test_Assumption(r == s);
#endif
	b = c;
	s = b;
#if 0
	Test_Assumption(r == s);
#endif

	return true;
}
开发者ID:Ariemeth,项目名称:MechCommander2HD,代码行数:36,代码来源:angle_test.cpp

示例15: rpmcdsaVerify

static int rpmcdsaVerify(pgpDig dig)
{
    int rc = 0;		/* assume failure */
pgpDigParams pubp = pgpGetPubkey(dig);
pgpDigParams sigp = pgpGetSignature(dig);
dig->pubkey_algoN = rpmcdsaPubkeyAlgo2Name(pubp->pubkey_algo);
dig->hash_algoN = rpmcdsaHashAlgo2Name(sigp->hash_algo);

    switch (pubp->pubkey_algo) {
    default:
	break;
    case PGPPUBKEYALGO_RSA:
	rc = rpmcdsaVerifyRSA(dig);
	break;
    case PGPPUBKEYALGO_DSA:
	rc = rpmcdsaVerifyDSA(dig);
	break;
    case PGPPUBKEYALGO_ELGAMAL:
#ifdef	NOTYET
	rc = rpmcdsaVerifyELG(dig);
#endif
	break;
    case PGPPUBKEYALGO_ECDSA:
	rc = rpmcdsaVerifyECDSA(dig);
	break;
    }
SPEW(!rc, rc, dig);
    return rc;
}
开发者ID:hahnakane,项目名称:junkcode,代码行数:29,代码来源:rpmcdsa.c


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