neuray API Programmer's Manual

math/version.h File Reference

Description

Major and minor version number and an optional qualifier. See Versioning of the Math API.

Code Example

math/version.h

‎//*****************************************************************************
// Copyright 1986, 2016 NVIDIA Corporation. All rights reserved.
//*****************************************************************************
//*****************************************************************************

#ifndef MI_MATH_VERSION_H
#define MI_MATH_VERSION_H

#include <mi/base/config.h>

// No DLL API yet, make this API version 0 and do not document it in the manual.
//
// API version number.
//
// A change in this version number indicates that the binary compatibility of the interfaces offered
// through the shared library have changed. Older versions can then explicitly asked for.
#define MI_MATH_API_VERSION  0


// The following three to four macros define the API version. The macros thereafter are defined in
// terms of the first four.

#define MI_MATH_VERSION_MAJOR  1

#define MI_MATH_VERSION_MINOR  0

#define MI_MATH_VERSION_QUALIFIER  ""

// This macro is defined if #MI_MATH_VERSION_QUALIFIER is the empty string \c "".
#define MI_MATH_VERSION_QUALIFIER_EMPTY

#define MI_MATH_VERSION_STRING  MI_BASE_STRINGIZE(MI_MATH_VERSION_MAJOR) "." \
                                MI_BASE_STRINGIZE(MI_MATH_VERSION_MINOR)

#ifdef MI_MATH_VERSION_QUALIFIER_EMPTY
#define MI_MATH_VERSION_QUALIFIED_STRING  MI_MATH_VERSION_STRING
#else
#define MI_MATH_VERSION_QUALIFIED_STRING  MI_MATH_VERSION_STRING "-" MI_MATH_VERSION_QUALIFIER
#endif // MI_MATH_VERSION_QUALIFIER_EMPTY
 // end group mi_math_version

#endif // MI_MATH_VERSION_H

Defines

#define  1
Math API major version number. More...
#define  0
Math API minor version number. More...
#define  MI_MATH_VERSION_STRING
Math API major and minor version number and qualifier in a string representation, such as "1.1" or "1.2-beta2". More...
#define  ""
Math API version qualifier. More...
#define 
Math API major and minor version number without qualifier in a string representation, such as "1.1". More...