SF.net SVN: geany:[5424] trunk/src/plugindata.h
ntrel at users.sourceforge.net
ntrel at xxxxx
Mon Nov 22 16:44:04 UTC 2010
Revision: 5424
http://geany.svn.sourceforge.net/geany/?rev=5424&view=rev
Author: ntrel
Date: 2010-11-22 16:44:04 +0000 (Mon, 22 Nov 2010)
Log Message:
-----------
Add example of using '#if GEANY_API_VERSION >= 200'.
Modified Paths:
--------------
trunk/src/plugindata.h
Modified: trunk/src/plugindata.h
===================================================================
--- trunk/src/plugindata.h 2010-11-22 16:30:44 UTC (rev 5423)
+++ trunk/src/plugindata.h 2010-11-22 16:44:04 UTC (rev 5424)
@@ -44,7 +44,13 @@
/** The Application Programming Interface (API) version, incremented
- * whenever any plugin data types are modified or appended to. */
+ * whenever any plugin data types are modified or appended to.
+ *
+ * You can protect code that needs a higher API than e.g. 200 with:
+ * @code #if GEANY_API_VERSION >= 200
+ * some_newer_function();
+ * #endif @endcode
+ */
#define GEANY_API_VERSION 200
/** The Application Binary Interface (ABI) version, incremented whenever
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list