version.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: version.h
  3. // Purpose: wxWidgets version numbers
  4. // Author: wxWidgets team
  5. // Licence: wxWindows licence
  6. /////////////////////////////////////////////////////////////////////////////
  7. /** @addtogroup group_funcmacro_version */
  8. //@{
  9. /**
  10. This is a macro which evaluates to @true if the current wxWidgets version
  11. is at least major.minor.release.
  12. For example, to test if the program is compiled with wxWidgets 2.2 or
  13. higher, the following can be done:
  14. @code
  15. wxString s;
  16. #if wxCHECK_VERSION(2, 2, 0)
  17. if ( s.StartsWith("foo") )
  18. #else // replacement code for old version
  19. if ( strncmp(s, "foo", 3) == 0 )
  20. #endif
  21. {
  22. ...
  23. }
  24. @endcode
  25. @header{wx/version.h}
  26. */
  27. #define wxCHECK_VERSION( major, minor, release )
  28. /**
  29. Same as wxCHECK_VERSION() but also checks that wxSUBRELEASE_NUMBER is at
  30. least subrel.
  31. @header{wx/version.h}
  32. */
  33. #define wxCHECK_VERSION_FULL( major, minor, release, subrel )
  34. //@}