Skip to content

Commit

Permalink
Simplify confusing plugin howto code example
Browse files Browse the repository at this point in the history
  • Loading branch information
codebrainz committed Dec 4, 2017
1 parent f5fe073 commit 39b894c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions doc/plugins.dox
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,7 @@ void geany_load_module(GeanyPlugin *plugin)
plugin->funcs->cleanup = hello_cleanup;

/* Step 3: Register! */
if (GEANY_PLUGIN_REGISTER(plugin, 225))
return;
GEANY_PLUGIN_REGISTER(plugin, 225);
/* alternatively:
GEANY_PLUGIN_REGISTER_FULL(plugin, 225, data, free_func); */
}
Expand Down

0 comments on commit 39b894c

Please sign in to comment.