From 70258a9ec48d6829f259dfd657d6a8211630afbb Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Mon, 22 Nov 2010 16:44:04 +0000 Subject: [PATCH] Add example of using '#if GEANY_API_VERSION >= 200'. git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5424 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- src/plugindata.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/plugindata.h b/src/plugindata.h index 5b24a149e..8a5d292e6 100644 --- a/src/plugindata.h +++ b/src/plugindata.h @@ -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 -- 2.11.4.GIT