Skip to content

Commit

Permalink
Merge pull request #145 from pinterf/master
Browse files Browse the repository at this point in the history
PluginManager::AddFunction remove unnecessary assert
  • Loading branch information
pinterf authored Mar 19, 2020
2 parents 9d1b1cb + f271e9e commit 6905cdb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions avs_core/core/PluginManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1003,8 +1003,14 @@ void PluginManager::AddFunction(const char* name, const char* params, IScriptEnv
else
{
newFunc = new AVSFunction(name, NULL, params, apply, user_data, NULL);
/*
// Comment out but kept for reference.
// This assert is false when AddFunction is called from a cpp non-plugin.
// e.g. a "master" that directly loads avisynth
// The extemption could handle only situations when function was loaded by C interface avs_add_function.
if(apply != &create_c_video_filter)
assert(newFunc->IsScriptFunction());
*/
}

// Warn user if a function with the same name is already registered by another plugin
Expand Down

0 comments on commit 6905cdb

Please sign in to comment.