I didn't see the use of geany_debug in any plugin source that I've looked at. Is there some other convention for reporting debug information for plugins? I've been using printf, but would prefer geany_debug.
As an implementation exercise, I
- added member void (*geany_debug) to struct PluginFuncs, replicating the declaration of geany_debug in geany.h
- added an initializer (reference to geany_debug) to plugin_funcs in plugins.c
- added a #define geany_debug in geanyfunctions.h.
- used geany_debug() in the plugin (Tools->Template Files) I'm developing.
What's the right way? All of the ...Funcs structs seem to use name prefix conventions, but geany_debug doesn't fit any pattern. Should there be another ...Funcs struct for this? Or maybe a similar but separate debug function should exist for plugins?
- tony