mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-01-18 19:47:15 +01:00
Prefix library names to avoid poluting the global scope.
Fix consistent naming through base types.
This commit is contained in:
parent
7f9169256d
commit
a66904702e
@ -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;
|
return 0;
|
||||||
else if (*this > b)
|
else if (*this > o)
|
||||||
return 1;
|
return 1;
|
||||||
else
|
else
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -97,7 +97,7 @@ void Register_Hash(HSQUIRRELVM vm)
|
|||||||
hashns.SquirrelFunc(_SC("GetSHA256"), &HashF< SHA256 >);
|
hashns.SquirrelFunc(_SC("GetSHA256"), &HashF< SHA256 >);
|
||||||
hashns.SquirrelFunc(_SC("GetSHA3"), &HashF< SHA3 >);
|
hashns.SquirrelFunc(_SC("GetSHA3"), &HashF< SHA3 >);
|
||||||
|
|
||||||
RootTable(vm).Bind(_SC("Hash"), hashns);
|
RootTable(vm).Bind(_SC("SqHash"), hashns);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // Namespace:: SqMod
|
} // Namespace:: SqMod
|
||||||
|
@ -357,7 +357,7 @@ static bool RandomProbF(SQFloat m, SQFloat n)
|
|||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
void Register_Random(HSQUIRRELVM vm)
|
void Register_Random(HSQUIRRELVM vm)
|
||||||
{
|
{
|
||||||
RootTable(vm).Bind(_SC("Random"), Table(vm)
|
RootTable(vm).Bind(_SC("SqRand"), Table(vm)
|
||||||
.Func(_SC("GenSeed"), &GenerateSeed)
|
.Func(_SC("GenSeed"), &GenerateSeed)
|
||||||
.Overload< void (*)(void) >(_SC("Reseed"), &ReseedRandom)
|
.Overload< void (*)(void) >(_SC("Reseed"), &ReseedRandom)
|
||||||
.Overload< void (*)(Uint32) >(_SC("Reseed"), &ReseedRandom)
|
.Overload< void (*)(Uint32) >(_SC("Reseed"), &ReseedRandom)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user