mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 08:47:17 +01:00
Make it generic.
This commit is contained in:
parent
4e1b3cd369
commit
d7ce51d8bb
@ -358,10 +358,10 @@ struct LightObj {
|
|||||||
/// Retrieves type-tag of the managed object
|
/// Retrieves type-tag of the managed object
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
AbstractStaticClassData * GetTypeTag() const {
|
SQUserPointer GetTypeTag() {
|
||||||
AbstractStaticClassData* typeTag;
|
SQUserPointer typeTag;
|
||||||
sq_pushobject(SqVM(), GetObj());
|
sq_pushobject(SqVM(), GetObj());
|
||||||
sq_gettypetag(SqVM(), -1, (SQUserPointer*)&typeTag);
|
sq_gettypetag(SqVM(), -1, &typeTag);
|
||||||
sq_pop(SqVM(), 1);
|
sq_pop(SqVM(), 1);
|
||||||
return typeTag;
|
return typeTag;
|
||||||
}
|
}
|
||||||
|
@ -372,10 +372,10 @@ public:
|
|||||||
/// Retrieves the type-tag of the managed object
|
/// Retrieves the type-tag of the managed object
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
AbstractStaticClassData * GetTypeTag() const {
|
SQUserPointer GetTypeTag() {
|
||||||
AbstractStaticClassData* typeTag;
|
SQUserPointer typeTag;
|
||||||
sq_pushobject(SqVM(), GetObj());
|
sq_pushobject(SqVM(), GetObj());
|
||||||
sq_gettypetag(SqVM(), -1, (SQUserPointer*)&typeTag);
|
sq_gettypetag(SqVM(), -1, &typeTag);
|
||||||
sq_pop(SqVM(), 1);
|
sq_pop(SqVM(), 1);
|
||||||
return typeTag;
|
return typeTag;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user