#include "Library/LongInt.hpp" //#include "Register.hpp" // ------------------------------------------------------------------------------------------------ namespace SqMod { // ------------------------------------------------------------------------------------------------ bool Register_LongInt(HSQUIRRELVM vm) { SQMOD_UNUSED_VAR(vm); /* Sqrat::RootTable(vm).Bind(_SC("SLongInt"), Sqrat::Class(vm, _SC("SLongInt")) .Ctor() .Ctor(SLongInt::Value) .Ctor(const SQChar *, SQInteger) .Prop(_SC("str"), &SLongInt::GetCStr, &SLongInt::SetStr) .Prop(_SC("num"), &SLongInt::GetSNum, &SLongInt::SetNum) .Func(_SC("_tostring"), &SLongInt::ToString) .Func(_SC("_cmp"), &SLongInt::Cmp) .Func(_SC("_add"), &SLongInt::operator +) .Func(_SC("_sub"), &SLongInt::operator -) .Func(_SC("_mul"), &SLongInt::operator *) .Func(_SC("_div"), &SLongInt::operator /) .Func(_SC("_modulo"), &SLongInt::operator %) .Func(_SC("_unm"), &SLongInt::operator -) .Overload(_SC("random"), &SLongInt::Random) .Overload(_SC("random"), &SLongInt::Random) ); Sqrat::RootTable(vm).Bind(_SC("ULongInt"), Sqrat::Class(vm, _SC("ULongInt")) .Ctor() .Ctor(ULongInt::Value) .Ctor(const SQChar *, SQInteger) .Prop(_SC("str"), &ULongInt::GetCStr, &ULongInt::SetStr) .Prop(_SC("num"), &ULongInt::GetSNum, &ULongInt::SetNum) .Func(_SC("_tostring"), &ULongInt::ToString) .Func(_SC("_cmp"), &ULongInt::Cmp) .Func(_SC("_add"), &ULongInt::operator +) .Func(_SC("_sub"), &ULongInt::operator -) .Func(_SC("_mul"), &ULongInt::operator *) .Func(_SC("_div"), &ULongInt::operator /) .Func(_SC("_modulo"), &ULongInt::operator %) .Func(_SC("_unm"), &ULongInt::operator -) .Overload(_SC("random"), &ULongInt::Random) .Overload(_SC("random"), &ULongInt::Random) ); */ return true; } } // Namespace:: SqMod