ai_version.h
1 /*
2  * Arnold API header file
3  * Copyright (c) 1998-2009 Marcos Fajardo, (c) 2009-2013 Solid Angle SL
4  */
5 
11 #pragma once
12 #include "ai_api.h"
13 
14 #define ARNOLD_XSTR(s) ARNOLD_STR(s)
15 #define ARNOLD_STR(s) #s
16 
17 #define AI_MAXSIZE_VERSION 32
18 
19 /*
20  * AI_VERSION_FIX *MUST* be a string!
21  * (something like "0.test" is acceptable, too!)
22  */
23 #define AI_VERSION_ARCH_NUM 4
24 #define AI_VERSION_MAJOR_NUM 1
25 #define AI_VERSION_MINOR_NUM 3
26 #define AI_VERSION_FIX "3"
27 
28 #define AI_VERSION_ARCH ARNOLD_XSTR(AI_VERSION_ARCH_NUM)
29 #define AI_VERSION_MAJOR ARNOLD_XSTR(AI_VERSION_MAJOR_NUM)
30 #define AI_VERSION_MINOR ARNOLD_XSTR(AI_VERSION_MINOR_NUM)
31 
37 #define AI_VERSION AI_VERSION_ARCH "." AI_VERSION_MAJOR "." AI_VERSION_MINOR "." AI_VERSION_FIX
38 
39 AI_API const char* AiGetVersion(char* arch, char* major, char* minor, char* fix);
40 AI_API const char* AiGetVersionInfo();
41 AI_API const char* AiGetCompileOptions();
42 AI_API bool AiCheckAPIVersion(const char* arch, const char* major, const char* minor);
43 
44 AI_API void AiSetAppString(const char* appstr);
45 
46 /*\}*/

© 2009-2013 Solid Angle SL · all rights reserved · www.solidangle.com