Revision: 5425 http://geany.svn.sourceforge.net/geany/?rev=5425&view=rev Author: ntrel Date: 2010-11-22 16:51:16 +0000 (Mon, 22 Nov 2010)
Log Message: ----------- Warn about preprocessor testing GEANY_API_VERSION below 200 because those tests will always fail.
Modified Paths: -------------- trunk/ChangeLog trunk/src/plugindata.h
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2010-11-22 16:44:04 UTC (rev 5424) +++ trunk/ChangeLog 2010-11-22 16:51:16 UTC (rev 5425) @@ -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>
Modified: trunk/src/plugindata.h =================================================================== --- trunk/src/plugindata.h 2010-11-22 16:44:04 UTC (rev 5424) +++ trunk/src/plugindata.h 2010-11-22 16:51:16 UTC (rev 5425) @@ -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
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.