예제 #1
0
EXPORT(sqInt) primitiveSetIntProperty(void) {
    sqInt handle;
    sqInt prop;
    sqInt value;
    sqInt result;

	if (!((interpreterProxy->methodArgumentCount()) == 3)) {
		return interpreterProxy->primitiveFail();
	}
	value = interpreterProxy->stackIntegerValue(0);
	prop = interpreterProxy->stackIntegerValue(1);
	handle = interpreterProxy->stackIntegerValue(2);
	result = b3dxSetIntProperty(handle, prop, value);
	if (!(result)) {
		return interpreterProxy->primitiveFail();
	}
	return interpreterProxy->pop(3);
}
primitiveSetIntProperty(void)
{
	// B3DAcceleratorPlugin>>#primitiveSetIntProperty
    sqInt handle;
    sqInt prop;
    sqInt result;
    sqInt value;

	if (!((methodArgumentCount()) == 3)) {
		return primitiveFail();
	}
	value = stackIntegerValue(0);
	prop = stackIntegerValue(1);
	handle = stackIntegerValue(2);
	result = b3dxSetIntProperty(handle, prop, value);
	if (!result) {
return primitiveFail();
	}
	return pop(3);
}