fixes for compiling "standalone" C++ scripts

This commit is contained in:
Vern Paxson 2022-09-24 14:56:42 -07:00
parent c05d61d6e2
commit 96668ca0d3
4 changed files with 16 additions and 1 deletions

View file

@ -412,7 +412,7 @@ static void use_CPP()
}
}
if ( num_used == 0 )
if ( num_used == 0 && standalone_activations.empty() )
reporter->FatalError("no C++ functions found to use");
// Now that we've loaded all of the compiled scripts