Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: frithjofh on September 23, 2015, 10:57:58 pm

Title: return value of cbToolPlugin::Execute()
Post by: frithjofh on September 23, 2015, 10:57:58 pm
Hi everyone,

is there any specification as to which are the return values of the function cbToolPlugin::Execute() ?

In the place of the declaration no comments regarding this point are given.

Best regards

frithjofh
Title: Re: return value of cbToolPlugin::Execute()
Post by: frithjofh on September 30, 2015, 01:45:44 pm
wow, what a great interest... ;)

I didn't think my question was that stupid...

if the function returns an int, well, i thought the api should say something about the expected values of that int...

but obviously I'm mistaken... or the devs don't care for that return value... but why does it return a value then... ?

regards

frihjofh
Title: Re: return value of cbToolPlugin::Execute()
Post by: ollydbg on September 30, 2015, 03:23:09 pm
The question is why you are so care about the return value?  :)
Title: Re: return value of cbToolPlugin::Execute()
Post by: oBFusCATed on September 30, 2015, 08:43:32 pm
As far as I can see the return value is ignored in MainFrame::OnPluginsExecuteMenu.
Probably somebody thought it might be useful for something in the future.
Title: Re: return value of cbToolPlugin::Execute()
Post by: frithjofh on October 01, 2015, 11:44:16 am
OK, thx for your answers...  ;)

for time being, I'll ignore the return value too.

Maybe someone should put a comment on this some where though...