RenderManAPI  24.0
Riley_version.h
Go to the documentation of this file.
1 /*
2 # ------------------------------------------------------------------------------
3 #
4 # Copyright (c) 2020 Pixar. All rights reserved.
5 #
6 # The information in this file (the "Software") is provided for the exclusive
7 # use of the software licensees of Pixar ("Licensees"). Licensees have the
8 # right to incorporate the Software into other products for use by other
9 # authorized software licensees of Pixar, without fee. Except as expressly
10 # permitted herein, the Software may not be disclosed to third parties, copied
11 # or duplicated in any form, in whole or in part, without the prior written
12 # permission of Pixar.
13 #
14 # The copyright notices in the Software and this entire statement, including the
15 # above license grant, this restriction and the following disclaimer, must be
16 # included in all copies of the Software, in whole or in part, and all permitted
17 # derivative works of the Software, unless such copies or derivative works are
18 # solely in the form of machine-executable object code generated by a source
19 # language processor.
20 #
21 # PIXAR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
22 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL PIXAR BE
23 # LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
24 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
25 # OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
26 # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. IN NO CASE WILL
27 # PIXAR'S TOTAL LIABILITY FOR ALL DAMAGES ARISING OUT OF OR IN CONNECTION WITH
28 # THE USE OR PERFORMANCE OF THIS SOFTWARE EXCEED $50.
29 #
30 # Pixar
31 # 1200 Park Ave
32 # Emeryville CA 94608
33 #
34 # ------------------------------------------------------------------------------
35 */
36 
37 /*
38  * Version 0.2
39  *
40  * This is a preview release and is not supported. This API will change substantially
41  * in the next release of RenderMan. Names, namespaces, methods, parameters, types,
42  * enums, and the structure of the interface are expected to change.
43  *
44  */
45 
46 #ifndef RILEY_VERSION_H
47 #define RILEY_VERSION_H
48 
54 
55 // Library major, minor and patch version numbers
56 #define RILEY_LIBRARY_VERSION_MAJOR 0
57 #define RILEY_LIBRARY_VERSION_MINOR 3
58 
59 #define RILEY_LIBRARY_VERSION_CODE \
60  (10000 * RILEY_LIBRARY_VERSION_MAJOR + 100 * RILEY_LIBRARY_VERSION_MINOR + \
61  RILEY_LIBRARY_VERSION_PATCH)
62 
63 #define RILEY_VERSION_TOKENIZE(a, b) v##a##_##b
64 #define RILEY_VERSION_TOKENIZE2(a, b) RILEY_VERSION_TOKENIZE(a, b)
65 
66 #define RILEY_LIBRARY_VERSION_STRING \
67  RILEY_VERSION_TOKENIZE2(RILEY_LIBRARY_VERSION_MAJOR, RILEY_LIBRARY_VERSION_MINOR)
68 
72 
79 
80 //
81 #define RILEY_NAMESPACE_ENTER \
82  namespace riley \
83  { \
84  namespace RILEY_LIBRARY_VERSION_STRING \
85  {
86 //
87 #define RILEY_NAMESPACE_SOURCE_EXIT \
88  } \
89  }
90 
91 #define RILEY_NAMESPACE_HEADER_EXIT \
92  } \
93  using namespace RILEY_LIBRARY_VERSION_STRING; \
94  }
95 
98 #define RILEY_USE_VERSION_NAMESPACE \
99  namespace RILEY_LIBRARY_VERSION_STRING \
100  {} \
101  using namespace RILEY_LIBRARY_VERSION_STRING;
102 
103 #endif // RILEY_VERSION_H