Removed intel runner from mac, it never run
Removed arm from windows as it will always fail as git ci runners are not arm
removed gcc12 kept gcc13
Added convenience function for checking if a package is active
This commit is contained in:
marauder2k7 2026-06-16 22:01:19 +01:00
parent 4062a1bbbd
commit 872c765ca0
5 changed files with 23 additions and 31 deletions

View file

@ -1748,6 +1748,28 @@ void Namespace::relinkPackages()
activatePackage(mActivePackages[i]);
}
bool Namespace::isPackageActive(StringTableEntry name)
{
S32 x;
for (x = 0; x < mNumActivePackages; x++)
{
if (mActivePackages[x] == name)
{
return true;
}
}
return false;
}
DefineEngineFunction(isPackageActive, bool, (String identifier), ,
"@brief Returns true if the identifier is a package and is active, otherwise false.\n\n"
"@ingroup Packages\n")
{
StringTableEntry name = StringTable->insert(identifier.c_str());
return Namespace::isPackageActive(name);
}
DefineEngineFunction(isPackage, bool, (String identifier), ,
"@brief Returns true if the identifier is the name of a declared package.\n\n"