From 831f25a3232f47b24f6747483ec6a8cc73ab71c7 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Fri, 3 Apr 2020 00:26:17 +0300 Subject: [PATCH] Routine count. Routine instance rename. --- module/Misc/Routine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/Misc/Routine.cpp b/module/Misc/Routine.cpp index 30bb93bb..b2408e1a 100644 --- a/module/Misc/Routine.cpp +++ b/module/Misc/Routine.cpp @@ -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);