diff options
author | Olly Betts <olly@survex.com> | 2022-07-27 12:25:27 +1200 |
---|---|---|
committer | Olly Betts <olly@survex.com> | 2022-07-27 12:25:27 +1200 |
commit | 0ff9a0959ab0fc537c7db53fb94efb7534b45925 (patch) | |
tree | 7f2771a0cd2947de9f431048a067a975306f5dc2 /Lib/swiglabels.swg | |
parent | 2227dc9e53dfe7aa236523058de139b5b3d5b6cc (diff) | |
download | swig-0ff9a0959ab0fc537c7db53fb94efb7534b45925.tar.gz |
Modify fix for << in array size
The previous fix broke testcase arrays for Go.
Diffstat (limited to 'Lib/swiglabels.swg')
-rw-r--r-- | Lib/swiglabels.swg | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/swiglabels.swg b/Lib/swiglabels.swg index b3855665e..43b2f6edc 100644 --- a/Lib/swiglabels.swg +++ b/Lib/swiglabels.swg @@ -121,3 +121,8 @@ #ifdef __INTEL_COMPILER # pragma warning disable 592 #endif + +/* We replace `<<` with `SWIG_LSHIFT` in constant expressions to avoid + * confusing SWIG's type system into thinking there's a template. + */ +#define SWIG_LSHIFT << |