Kaydet (Commit) f3720268 authored tarafından Nick Treleaven's avatar Nick Treleaven

Warn about preprocessor testing GEANY_API_VERSION below 200 because

those tests will always fail.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5425 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 70258a9e
......@@ -11,6 +11,9 @@
* src/plugindata.h:
Make GEANY_API_VERSION, GEANY_ABI_VERSION macros instead of enums
so you can protect code with '#if GEANY_API_VERSION >= 200'.
* src/plugindata.h:
Warn about preprocessor testing GEANY_API_VERSION below 200 because
those tests will always fail.
2010-11-21 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
......
......@@ -50,6 +50,9 @@
* @code #if GEANY_API_VERSION >= 200
* some_newer_function();
* #endif @endcode
*
* @warning You should not test for values below 200 as previously
* @c GEANY_API_VERSION was defined as an enum value, not a macro.
*/
#define GEANY_API_VERSION 200
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment