Testcase fix for name clash in tcl headers
This commit is contained in:
parent
9d5d991f83
commit
00b0c5b8ea
1 changed files with 4 additions and 4 deletions
|
|
@ -6,14 +6,14 @@
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
#ifdef SWIG
|
#ifdef SWIG
|
||||||
#define CONST const
|
#define SWIGTESTCONST const
|
||||||
#else
|
#else
|
||||||
#define CONST
|
#define SWIGTESTCONST
|
||||||
#endif
|
#endif
|
||||||
constexpr int AAA = 10;
|
constexpr int AAA = 10;
|
||||||
constexpr const int BBB = 20;
|
constexpr const int BBB = 20;
|
||||||
constexpr int CCC() { return 30; }
|
constexpr int CCC() { return 30; }
|
||||||
constexpr CONST int DDD() { return 40; }
|
constexpr SWIGTESTCONST int DDD() { return 40; }
|
||||||
|
|
||||||
constexpr int XXX() { return 10; }
|
constexpr int XXX() { return 10; }
|
||||||
constexpr int YYY = XXX() + 100;
|
constexpr int YYY = XXX() + 100;
|
||||||
|
|
@ -23,7 +23,7 @@ struct ConstExpressions {
|
||||||
static constexpr int KKK = 200;
|
static constexpr int KKK = 200;
|
||||||
static const int LLL = 300;
|
static const int LLL = 300;
|
||||||
constexpr int MMM() { return 400; }
|
constexpr int MMM() { return 400; }
|
||||||
constexpr CONST int NNN() { return 500; }
|
constexpr SWIGTESTCONST int NNN() { return 500; }
|
||||||
// Regression tests for support added in SWIG 3.0.4:
|
// Regression tests for support added in SWIG 3.0.4:
|
||||||
static constexpr const int JJJ1 = 101;
|
static constexpr const int JJJ1 = 101;
|
||||||
constexpr static int KKK1 = 201;
|
constexpr static int KKK1 = 201;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue