1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Routine count.

Routine instance rename.
This commit is contained in:
Sandu Liviu Catalin 2020-04-03 00:26:17 +03:00
parent 038a0a5d5f
commit 831f25a323

View File

@ -11,7 +11,7 @@
namespace SqMod {
// ------------------------------------------------------------------------------------------------
SQMODE_DECL_TYPENAME(Typename, _SC("SqRoutineBase"))
SQMODE_DECL_TYPENAME(Typename, _SC("SqRoutineInstance"))
// ------------------------------------------------------------------------------------------------
Routine::Time Routine::s_Last = 0;
@ -348,6 +348,7 @@ void Register_Routine(HSQUIRRELVM vm)
.Func(_SC("Terminate"), &Routine::Terminate)
.Func(_SC("GetArgument"), &Routine::GetArgument)
.Func(_SC("DropEnv"), &Routine::DropEnv)
.StaticFunc(_SC("ActiveCount"), &Routine::GetUsed)
);
// Global functions
RootTable(vm).SquirrelFunc(_SC("SqRoutine"), &Routine::Create);