1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Prefix library names to avoid poluting the global scope.

Fix consistent naming through base types.
This commit is contained in:
Sandu Liviu Catalin 2016-02-21 07:39:33 +02:00
parent 7f9169256d
commit a66904702e
3 changed files with 5 additions and 5 deletions

View File

@ -291,11 +291,11 @@ bool AABB::operator >= (const AABB & b) const
}
// ------------------------------------------------------------------------------------------------
Int32 AABB::Cmp(const AABB & b) const
Int32 AABB::Cmp(const AABB & o) const
{
if (*this == b)
if (*this == o)
return 0;
else if (*this > b)
else if (*this > o)
return 1;
else
return -1;

View File

@ -97,7 +97,7 @@ void Register_Hash(HSQUIRRELVM vm)
hashns.SquirrelFunc(_SC("GetSHA256"), &HashF< SHA256 >);
hashns.SquirrelFunc(_SC("GetSHA3"), &HashF< SHA3 >);
RootTable(vm).Bind(_SC("Hash"), hashns);
RootTable(vm).Bind(_SC("SqHash"), hashns);
}
} // Namespace:: SqMod

View File

@ -357,7 +357,7 @@ static bool RandomProbF(SQFloat m, SQFloat n)
// ------------------------------------------------------------------------------------------------
void Register_Random(HSQUIRRELVM vm)
{
RootTable(vm).Bind(_SC("Random"), Table(vm)
RootTable(vm).Bind(_SC("SqRand"), Table(vm)
.Func(_SC("GenSeed"), &GenerateSeed)
.Overload< void (*)(void) >(_SC("Reseed"), &ReseedRandom)
.Overload< void (*)(Uint32) >(_SC("Reseed"), &ReseedRandom)