But what do you mean "it xD" ?
And here we probably have it xDThis was sarcastic or cynical... It was only a matter of time until someone will find a bug about this patch.
What do you mean by 2? I don't understand.
if(&deleteTarget==&m_LastTarget)
{
MacrosManager::Reset();
}
A proper fix would be to use shared_ptr<> and weak_ptr<> on every place a target pointer is used...I'm not really sure this would be a good idea. For sure it would be quite hard to implement, because you'll probably have to change every file in the repo.
@@ -1310,10 +1310,11 @@ bool cbProject::RemoveBuildTarget(int index)
// finally remove the target
delete target;
m_Targets.RemoveAt(index);
SetModified(true);
NotifyPlugins(cbEVT_PROJECT_TARGETS_MODIFIED);
+ Manager::Get()->GetMacrosManager()->Reset();
return true;
}
return false;
}
Output filename = bin\$(TARGET_NAME)\deleteTarget.exeif the deleted target is "one" =>
Objects output dir = obj\$(TARGET_NAME)\
Output filename = bin\one\deleteTarget.exeare kept on the disc !!
Objects output dir = obj\one\main.o