It just feels better to use 'geany_plugin_get_data()' than to store a pointer 
in a global variable within the plugin module.

Depending on how geany does with the initialization of the plugin code, there 
is a possibility that the lib file is instantiated several times and a static 
variable would then get the wrong value for the first initialization.
That's why it feels better with 'geany_plugin_get_data()'

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3356#issuecomment-1365227370
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/pull/3356/[email protected]>

Reply via email to