Fix #2746858 - C macro expression using floating point numbers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11185 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
4a1b29a394
commit
bd46f03b6f
3 changed files with 20 additions and 1 deletions
|
|
@ -313,6 +313,11 @@ int test(int defined)
|
|||
#define MASK(shift, size) (((1 << (size)) - 1) <<(shift))
|
||||
#define SOME_MASK_DEF (80*MASK(8, 10))
|
||||
|
||||
/* some constants */
|
||||
#define BOLTZMANN (1.380658e-23)
|
||||
#define AVOGADRO (6.0221367e23)
|
||||
#define RGAS (BOLTZMANN*AVOGADRO)
|
||||
#define RGASX (BOLTZMANN*AVOGADRO*BOLTZMANN)
|
||||
|
||||
%{
|
||||
#define TEUCHOS_TYPE_NAME_TRAITS_BUILTIN_TYPE_SPECIALIZATION(TYPE) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue