include/Cnx/mpl/PPMath.h file

PPMath provides metaprogramming macros for operating on/with numeric values.

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Defines

#define ___ADD1_0
Adds 1 to 0, returning the result as a single token.
#define ___ADD1_1
Adds 1 to 1, returning the result as a single token.
#define ___ADD1_2
Adds 1 to 2, returning the result as a single token.
#define ___ADD1_3
Adds 1 to 3, returning the result as a single token.
#define ___ADD1_4
Adds 1 to 4, returning the result as a single token.
#define ___ADD1_5
Adds 1 to 5, returning the result as a single token.
#define ___ADD1_6
Adds 1 to 6, returning the result as a single token.
#define ___ADD1_7
Adds 1 to 7, returning the result as a single token.
#define ___ADD1_8
Adds 1 to 8, returning the result as a single token.
#define ___ADD1_9
Adds 1 to 9, returning the result as a single token.
#define ___ADD1_10
Adds 1 to 10, returning the result as a single token.
#define ___ADD1_11
Adds 1 to 11, returning the result as a single token.
#define ___ADD1_12
Adds 1 to 12, returning the result as a single token.
#define ADD1(N)
Adds 1 to the given value, returning the result as a single token.
#define ___SUBTRACT1_0()
Subtracts 1 from 0, returning the result as a single token.
#define ___SUBTRACT1_1()
Subtracts 1 from 1, returning the result as a single token.
#define ___SUBTRACT1_2()
Subtracts 1 from 2, returning the result as a single token.
#define ___SUBTRACT1_3()
Subtracts 1 from 3, returning the result as a single token.
#define ___SUBTRACT1_4()
Subtracts 1 from 4, returning the result as a single token.
#define ___SUBTRACT1_5()
Subtracts 1 from 5, returning the result as a single token.
#define ___SUBTRACT1_6()
Subtracts 1 from 6, returning the result as a single token.
#define ___SUBTRACT1_7()
Subtracts 1 from 7, returning the result as a single token.
#define ___SUBTRACT1_8()
Subtracts 1 from 8, returning the result as a single token.
#define ___SUBTRACT1_9()
Subtracts 1 from 9, returning the result as a single token.
#define ___SUBTRACT1_10()
Subtracts 1 from 10, returning the result as a single token.
#define ___SUBTRACT1_11()
Subtracts 1 from 11, returning the result as a single token.
#define ___SUBTRACT1_12()
Subtracts 1 from 12, returning the result as a single token.
#define SUBTRACT1(N)
Subtracts 1 from the given value, returning the result as a single token.