diff --git a/bridge/include/CoreProvider.h b/bridge/include/CoreProvider.h index 1bc93108..e688ec39 100644 --- a/bridge/include/CoreProvider.h +++ b/bridge/include/CoreProvider.h @@ -67,7 +67,7 @@ struct DatabaseInfo; class IPlayerInfoBridge; class ICommandArgs; -typedef ke::Lambda CommandFunc; +typedef ke::Function CommandFunc; class CoreProvider { diff --git a/core/GameHooks.h b/core/GameHooks.h index 38493cc5..c73d84ac 100644 --- a/core/GameHooks.h +++ b/core/GameHooks.h @@ -63,7 +63,7 @@ class CommandHook : public ke::Refcounted { public: // return false to RETURN_META(MRES_IGNORED), or true to SUPERCEDE. - typedef ke::Lambda Callback; + typedef ke::Function Callback; public: CommandHook(ConCommand *cmd, const Callback &callback, bool post); diff --git a/core/logic/HandleSys.h b/core/logic/HandleSys.h index 54e91751..4aace757 100644 --- a/core/logic/HandleSys.h +++ b/core/logic/HandleSys.h @@ -117,7 +117,7 @@ struct QHandleType } }; -typedef ke::Lambda HandleReporter; +typedef ke::Function HandleReporter; class HandleSystem : public IHandleSys diff --git a/core/logic/PluginSys.cpp b/core/logic/PluginSys.cpp index 5e81d244..9569c5b3 100644 --- a/core/logic/PluginSys.cpp +++ b/core/logic/PluginSys.cpp @@ -1165,7 +1165,7 @@ bool CPlugin::ForEachExtVar(const ExtVarCallback& callback) return true; } -void CPlugin::ForEachLibrary(ke::Lambda callback) +void CPlugin::ForEachLibrary(ke::Function callback) { for (auto iter = m_Libraries.begin(); iter != m_Libraries.end(); iter++) callback((*iter).c_str()); @@ -1177,7 +1177,7 @@ void CPlugin::AddRequiredLib(const char *name) m_RequiredLibs.push_back(name); } -bool CPlugin::ForEachRequiredLib(ke::Lambda callback) +bool CPlugin::ForEachRequiredLib(ke::Function callback) { for (auto iter = m_RequiredLibs.begin(); iter != m_RequiredLibs.end(); iter++) { if (!callback((*iter).c_str())) @@ -2273,7 +2273,7 @@ void CPluginManager::FreePluginList(const CVector *list) delete const_cast *>(list); } -void CPluginManager::ForEachPlugin(ke::Lambda callback) +void CPluginManager::ForEachPlugin(ke::Function callback) { for (PluginIter iter(m_plugins); !iter.done(); iter.next()) callback(*iter); @@ -2394,4 +2394,4 @@ static OldPluginAPI sOldPluginAPI; IPluginManager *CPluginManager::GetOldAPI() { return &sOldPluginAPI; -} \ No newline at end of file +} diff --git a/core/logic/PluginSys.h b/core/logic/PluginSys.h index 4a6b617b..7087ced9 100644 --- a/core/logic/PluginSys.h +++ b/core/logic/PluginSys.h @@ -129,10 +129,10 @@ public: bool required; }; - typedef ke::Lambda ExtVarCallback; + typedef ke::Function ExtVarCallback; bool ForEachExtVar(const ExtVarCallback& callback); - void ForEachLibrary(ke::Lambda callback); + void ForEachLibrary(ke::Function callback); public: /** * Creates a plugin object with default values. @@ -215,7 +215,7 @@ public: } void AddRequiredLib(const char *name); - bool ForEachRequiredLib(ke::Lambda callback); + bool ForEachRequiredLib(ke::Function callback); bool HasMissingFakeNatives() const { return m_FakeNativesMissing; @@ -432,7 +432,7 @@ public: void _SetPauseState(CPlugin *pPlugin, bool pause); - void ForEachPlugin(ke::Lambda callback); + void ForEachPlugin(ke::Function callback); private: LoadRes LoadPlugin(CPlugin **pPlugin, const char *path, bool debug, PluginType type); diff --git a/core/logic/frame_tasks.cpp b/core/logic/frame_tasks.cpp index d2b98962..0daf60ec 100644 --- a/core/logic/frame_tasks.cpp +++ b/core/logic/frame_tasks.cpp @@ -29,11 +29,11 @@ using namespace SourceMod; -ke::Vector> sNextTasks; -ke::Vector> sWorkTasks; +ke::Vector> sNextTasks; +ke::Vector> sWorkTasks; void -SourceMod::ScheduleTaskForNextFrame(ke::Lambda&& task) +SourceMod::ScheduleTaskForNextFrame(ke::Function&& task) { sNextTasks.append(ke::Forward(task)); } @@ -45,11 +45,11 @@ SourceMod::RunScheduledFrameTasks(bool simulating) return; // Swap. - ke::Vector> temp(ke::Move(sNextTasks)); + ke::Vector> temp(ke::Move(sNextTasks)); sNextTasks = ke::Move(sWorkTasks); sWorkTasks = ke::Move(temp); for (size_t i = 0; i < sWorkTasks.length(); i++) sWorkTasks[i](); sWorkTasks.clear(); -} \ No newline at end of file +} diff --git a/core/logic/frame_tasks.h b/core/logic/frame_tasks.h index 270417f7..31dabf3a 100644 --- a/core/logic/frame_tasks.h +++ b/core/logic/frame_tasks.h @@ -31,10 +31,10 @@ namespace SourceMod { -void ScheduleTaskForNextFrame(ke::Lambda&& task); +void ScheduleTaskForNextFrame(ke::Function&& task); void RunScheduledFrameTasks(bool simulating); } -#endif // _include_sourcemod_logic_frame_tasks_h_ \ No newline at end of file +#endif // _include_sourcemod_logic_frame_tasks_h_ diff --git a/public/amtl b/public/amtl index 83c4441b..8a59372d 160000 --- a/public/amtl +++ b/public/amtl @@ -1 +1 @@ -Subproject commit 83c4441b7ede45dfa447bdef614e924c4b7ffea9 +Subproject commit 8a59372d1f8333ad455e03866b2aec7769cfb51a diff --git a/sourcepawn b/sourcepawn index 49f94603..ee2b9baa 160000 --- a/sourcepawn +++ b/sourcepawn @@ -1 +1 @@ -Subproject commit 49f94603972956a85dab61da475e92795ead40a5 +Subproject commit ee2b9baac39f1e3d1e4c81600beb6b4e1f81323e