[Github-comments] [geany/geany] Push current position to navqueue before navigating back (#1537)

Thomas Martitz notifications at xxxxx
Sat Jul 15 05:46:09 UTC 2017


@codebrainz the file_name can be null for unnamed docs, or am I wrong ?

An assert carries the intent to say "if this is null, then there is a programming error elsewhere" while an if (null) says null is expectable (which isn't the case here).

For API functions we usually use g_return_if_fail which logs an error does not abort the program, to save the user from poorly written plugins. But the function isnt part of the API so IMO an assert is perfectly appropriate.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1537#issuecomment-315511861
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170715/1f1bb6cf/attachment.html>


More information about the Github-comments mailing list