Example #1
0
void XXObjectMouse::InitObject( )
{
	_SYSCALL(addListener);
	_SYSCALL(removeListener);
	_SYSCALL(show);
	_SYSCALL(hide);
	//AddMember(XXVar(_strAddListener),XXVar(XXFUNOBJ(addListenerMouse)));
	//AddMember(XXVar(_strRemoveListener),XXVar(XXFUNOBJ(removeListenerMouse)));
	//AddMember(XXVar(_strShow),XXVar(XXFUNOBJ(showMouse)));
	//AddMember(XXVar(_strHide),XXVar(XXFUNOBJ(hideMouse)));
}
Example #2
0
XXObjectArgs::XXObjectArgs(ScriptPlayer*pRoot,XXObject*pSuper,XU8 bInit):
			  XXObjectArray(pRoot)
{

	m_pCallee=XNULL;
	SetSuper(pSuper,bInit);
	//m_nRefs=2;
	if(bInit)
	{
		_SYSCALL(callee);
		_SYSCALL(caller);
		XXObjectArray::InitObject();
		/*AddProperty(XXVar(_strLength),XXFUNOBJ(arrayLenGet),XXFUNOBJ(arrayLenSet));
		//AddMember(XXVar(_strCASEINSENSITIVE,XXVar(1));
		//AddMember(XXVar(_strDESCENDING,XXVar(2));
		//AddMember(XXVar(_strUNIQUESORT,XXVar(4));
		//AddMember(XXVar(_strRETURNINDEXEDARRAY,XXVar(8));
		//AddMember(XXVar(_strNUMERIC,XXVar(16));
		AddMember(XXVar(_strPop),XXVar(XXFUNOBJ(Pop)));
		AddMember(XXVar(_strConcat),XXVar(XXFUNOBJ(Concat)));
		AddMember(XXVar(_strPush),XXVar(XXFUNOBJ(Push)));
		AddMember(XXVar(_strShift),XXVar(XXFUNOBJ(Shift)));
		AddMember(XXVar(_strSort),XXVar(XXFUNOBJ(Sort)));
		AddMember(XXVar(_strUnshift),XXVar(XXFUNOBJ(UnShift)));
		AddMember(XXVar(_strSlice),XXVar(XXFUNOBJ(Slice)));
		AddMember(XXVar(_strSplice),XXVar(XXFUNOBJ(Splice)));
		AddMember(XXVar(_strReverse),XXVar(XXFUNOBJ(Reverse)));
		AddMember(XXVar(_strJoin),XXVar(XXFUNOBJ(Join)));
		AddMember(XXVar(_strSortOn),XXVar(XXFUNOBJ(SortOn)));
		//AddMember(XXVar(_strConstructor,XXVar(this));
		//AddProperty(XXVar(_strLength,XXFUNOBJ(argLenGet),XNULL);
		//XXObjectArray::InitObject();
		AddProperty(XXVar(_strCallee),XXFUNOBJ(calleeGet),XNULL);
		AddProperty(XXVar(_strCaller),XXFUNOBJ(callerGet),XNULL);*/
	}
}
Example #3
0
void XXObjectRectangle::InitObject( )
{
	_SYSCALL(clone);
	_SYSCALL(contains);//CONTAINS);
	_SYSCALL(containsPoint);
	_SYSCALL(containsRectangle);
	_SYSCALL(equals);
	_SYSCALL(inflate);
	_SYSCALL(inflatePoint);
	_SYSCALL(intersection);
	_SYSCALL(intersects);
	_SYSCALL(isEmpty);
	_SYSCALL(offset);
	_SYSCALL(offsetPoint);
	_SYSCALL(setEmpty);
	_SYSCALL(union);
	_SYSCALL(bottom);
	_SYSCALL(bottomRight);
	_SYSCALL(height);
	_SYSCALL(left);
	_SYSCALL(right);
	_SYSCALL(size);
	_SYSCALL(top);
	_SYSCALL(topLeft);
	_SYSCALL(width);
	_SYSCALL(x);
	_SYSCALL(y);
	/*AddMember(XXVar(_strClone),XXVar(XXFUNOBJ(cloneRect)));
	AddMember(XXVar(_strContains),XXVar(XXFUNOBJ(contains)));
	AddMember(XXVar(_strContainsPoint),XXVar(XXFUNOBJ(containsPoint)));
	AddMember(XXVar(_strContainsRectangle),XXVar(XXFUNOBJ(containsRectangle)));
	AddMember(XXVar(_strEquals),XXVar(XXFUNOBJ(equalsRect)));
	AddMember(XXVar(_strInflate),XXVar(XXFUNOBJ(inflate)));
	AddMember(XXVar(_strInflatePoint),XXVar(XXFUNOBJ(inflatePoint)));
	AddMember(XXVar(_strIntersection),XXVar(XXFUNOBJ(intersection)));
	AddMember(XXVar(_strIntersects),XXVar(XXFUNOBJ(intersects)));
	AddMember(XXVar(_strIsEmpty),XXVar(XXFUNOBJ(isEmpty)));
	AddMember(XXVar(_strOffset),XXVar(XXFUNOBJ(offsetRect)));
	AddMember(XXVar(_strOffsetPoint),XXVar(XXFUNOBJ(offsetPoint)));
	AddMember(XXVar(_strSetEmpty),XXVar(XXFUNOBJ(setEmpty)));
	AddMember(XXVar(_strUnion),XXVar(XXFUNOBJ(unionRect)));

	AddProperty(XXVar(_strBottom),XXFUNOBJ(bottomGet),XXFUNOBJ(bottomSet));
	AddProperty(XXVar(_strBottomRight),XXFUNOBJ(bottomRightGet),XXFUNOBJ(bottomRightSet));
	AddProperty(XXVar(_strHeight),XXFUNOBJ(heightGet),XXFUNOBJ(heightSet));
	AddProperty(XXVar(_strLeft),XXFUNOBJ(leftGet),XXFUNOBJ(leftSet));
	AddProperty(XXVar(_strRight),XXFUNOBJ(rightGet),XXFUNOBJ(rightSet));
	AddProperty(XXVar(_strSize),XXFUNOBJ(sizeGet),XXFUNOBJ(sizeSet));
	AddProperty(XXVar(_strTop),XXFUNOBJ(topGet),XXFUNOBJ(topSet));
	AddProperty(XXVar(_strTopLeft),XXFUNOBJ(topLeftGet),XXFUNOBJ(topLeftSet));
	AddProperty(XXVar(_strWidth),XXFUNOBJ(widthGet),XXFUNOBJ(widthSet));
	AddProperty(XXVar(_strXX),XXFUNOBJ(leftGet),XXFUNOBJ(leftSet));
	AddProperty(XXVar(_strYY),XXFUNOBJ(topGet),XXFUNOBJ(topSet));*/
}
Example #4
0
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/syscall.h>
#include <map>

#define _SYSCALL(x) std::make_pair(SYS_##x, #x)
std::map<int, std::string> syscall_map {
    _SYSCALL(_sysctl),
    _SYSCALL(accept),
    _SYSCALL(accept4),
    _SYSCALL(access),
    _SYSCALL(acct),
    _SYSCALL(add_key),
    _SYSCALL(adjtimex),
    _SYSCALL(afs_syscall),
    _SYSCALL(alarm),
    _SYSCALL(arch_prctl),
    _SYSCALL(bind),
    _SYSCALL(brk),
    _SYSCALL(capget),
    _SYSCALL(capset),
    _SYSCALL(chdir),
    _SYSCALL(chmod),
    _SYSCALL(chown),
    _SYSCALL(chroot),
    _SYSCALL(clock_adjtime),
    _SYSCALL(clock_getres),
    _SYSCALL(clock_gettime),
    _SYSCALL(clock_nanosleep),
    _SYSCALL(clock_settime),
    _SYSCALL(clone),