mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-01-19 03:57:14 +01:00
Routine count.
Routine instance rename.
This commit is contained in:
parent
038a0a5d5f
commit
831f25a323
@ -11,7 +11,7 @@
|
|||||||
namespace SqMod {
|
namespace SqMod {
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
SQMODE_DECL_TYPENAME(Typename, _SC("SqRoutineBase"))
|
SQMODE_DECL_TYPENAME(Typename, _SC("SqRoutineInstance"))
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
Routine::Time Routine::s_Last = 0;
|
Routine::Time Routine::s_Last = 0;
|
||||||
@ -348,6 +348,7 @@ void Register_Routine(HSQUIRRELVM vm)
|
|||||||
.Func(_SC("Terminate"), &Routine::Terminate)
|
.Func(_SC("Terminate"), &Routine::Terminate)
|
||||||
.Func(_SC("GetArgument"), &Routine::GetArgument)
|
.Func(_SC("GetArgument"), &Routine::GetArgument)
|
||||||
.Func(_SC("DropEnv"), &Routine::DropEnv)
|
.Func(_SC("DropEnv"), &Routine::DropEnv)
|
||||||
|
.StaticFunc(_SC("ActiveCount"), &Routine::GetUsed)
|
||||||
);
|
);
|
||||||
// Global functions
|
// Global functions
|
||||||
RootTable(vm).SquirrelFunc(_SC("SqRoutine"), &Routine::Create);
|
RootTable(vm).SquirrelFunc(_SC("SqRoutine"), &Routine::Create);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user