source: trunk/src/testing/include/sageVersion.h @ 4

Revision 4, 2.8 KB checked in by ajaworski, 13 years ago (diff)

Added modified SAGE sources

Line 
1/******************************************************************************
2 * SAGE - Scalable Adaptive Graphics Environment
3 *
4 * Module: sail.h
5 * Author : Luc Renambot
6 *
7 * Copyright (C) 2010 Electronic Visualization Laboratory,
8 * University of Illinois at Chicago
9 *
10 * All rights reserved.
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions are met:
14 *
15 *  * Redistributions of source code must retain the above copyright
16 *    notice, this list of conditions and the following disclaimer.
17 *  * Redistributions in binary form must reproduce the above
18 *    copyright notice, this list of conditions and the following disclaimer
19 *    in the documentation and/or other materials provided with the distribution.
20 *  * Neither the name of the University of Illinois at Chicago nor
21 *    the names of its contributors may be used to endorse or promote
22 *    products derived from this software without specific prior written permission.
23 *
24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
25 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
26 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
27 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
28 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
29 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
30 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
31 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
32 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
33 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
34 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35 *
36 * Direct questions, comments etc about SAGE to admin@sagecommons.org or
37 * http://www.sagecommons.org
38 *
39 * $Rev:: 158                                                                 $
40 * $Author:: renambot                                                         $
41 * $Date:: 2010-03-26 07:19:46 +0100 (pią)                                   $
42 *****************************************************************************/
43
44#ifndef SAGEVERSION_H_
45#define SAGEVERSION_H_
46
47
48// This is the main version number
49#define SAGE_BASE_VERSION 3.2
50
51// Utility macros to join and convert to string some values
52#define SAGE_STR(XX) #XX
53#define SAGE_XSTR(XX) SAGE_STR(XX)
54#define SAGE_JOIN(XX, YY) SAGE_JOIN_AGAIN(XX, YY)
55#define SAGE_JOIN_AGAIN(XX, YY) XX ## . ## YY
56
57#if defined(SAGE_REVISION)
58        // If there's a revision number from SVN,
59        // we add it to the base version number
60#define SAGE_VERSION SAGE_XSTR(SAGE_JOIN(SAGE_BASE_VERSION, SAGE_REVISION))
61
62#else
63        // Just make it a string
64#define SAGE_VERSION SAGE_XSTR( SAGE_BASE_VERSION )
65
66#endif
67
68
69#endif
70
Note: See TracBrowser for help on using the repository browser.