mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-02-06 06:17:14 +01:00
Prefix library names to avoid poluting the global scope.
Fix consistent naming through base types.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user