1 /* === S I N F G =========================================================== */
3 ** \brief Template Header
5 ** $Id: version.h,v 1.1.1.1 2005/01/04 01:23:15 darco Exp $
8 ** Copyright (c) 2002 Robert B. Quattlebaum Jr.
10 ** This software and associated documentation
11 ** are CONFIDENTIAL and PROPRIETARY property of
12 ** the above-mentioned copyright holder.
14 ** You may not copy, print, publish, or in any
15 ** other way distribute this software without
16 ** a prior written agreement with
17 ** the copyright holder.
20 /* ========================================================================= */
22 /* === S T A R T =========================================================== */
24 #ifndef __SINFG_VERSION_H
25 #define __SINFG_VERSION_H
27 /* === H E A D E R S ======================================================= */
29 /* === M A C R O S ========================================================= */
31 /*! \def SINFG_VERSION
32 ** \brief Sinfg API Version
34 ** The macro SINFG_VERSION can be set to ensure
35 ** compile-time compatibility with future versions
36 ** of Sinfg. The first two digits are the major
37 ** version, the second two digits are the minor
38 ** version, and the last two digits are the
42 #define SINFG_VERSION (006000)
45 /*! Increment this value whenever
46 ** the library changes in a way
47 ** that breaks library compatibility
49 #define SINFG_LIBRARY_VERSION 47
52 #define SINFG_CHECK_VERSION() sinfg::check_version_(SINFG_LIBRARY_VERSION,sizeof(sinfg::Vector),sizeof(sinfg::Color),sizeof(sinfg::Canvas),sizeof(sinfg::Layer))
54 /* === C L A S S E S & S T R U C T S ======================================= */
58 //! Version checker \internal
59 /*! Checks to make sure that the library
60 ** version matches with what the program
61 ** was compiled against.
62 ** \see SINFG_CHECK_VERSION()
64 extern bool check_version_(int v,int vec_size, int color_size,int canvas_size,int layer_size);
66 extern const char *get_version();
68 extern const char *get_build_date();
70 extern const char *get_build_time();
72 }; // END of namespace sinfg
74 /* === E N D =============================================================== */