mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-02-13 09:47:15 +01:00
Minor code style and consistency adjustments.
This commit is contained in:
@@ -133,14 +133,15 @@ String AES256::Decrypt(CSStr data)
|
||||
// ================================================================================================
|
||||
void Register_AES(HSQUIRRELVM vm)
|
||||
{
|
||||
RootTable(vm).Bind(Typename::Str, Class< AES256 >(vm, Typename::Str)
|
||||
RootTable(vm).Bind(Typename::Str,
|
||||
Class< AES256 >(vm, Typename::Str)
|
||||
// Constructors
|
||||
.Ctor()
|
||||
.Ctor< CSStr >()
|
||||
// Meta-methods
|
||||
.SquirrelFunc(_SC("_typename"), &Typename::Fn)
|
||||
.Func(_SC("cmp"), &AES256::Cmp)
|
||||
.Func(_SC("_tostring"), &AES256::ToString)
|
||||
.Func(_SC("cmp"), &AES256::Cmp)
|
||||
/* Properties */
|
||||
.Prop(_SC("Key"), &AES256::GetKey)
|
||||
/* Functions */
|
||||
|
||||
@@ -52,7 +52,8 @@ template < class T > static SQInteger HashF(HSQUIRRELVM vm)
|
||||
template < class T > static void RegisterWrapper(Table & hashns, CCStr cname)
|
||||
{
|
||||
typedef HashWrapper< T > Hash;
|
||||
hashns.Bind(cname, Class< Hash >(hashns.GetVM(), cname)
|
||||
hashns.Bind(cname,
|
||||
Class< Hash >(hashns.GetVM(), cname)
|
||||
// Constructors
|
||||
.Ctor()
|
||||
// Meta-methods
|
||||
|
||||
Reference in New Issue
Block a user