From 1993b334a6583aaec1ce28000c3b3a1ae0406d5d Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Thu, 30 Jun 2022 17:28:25 +0100 Subject: [PATCH] Generate swiglabels code earlier on in runtime code Since the recent inclusion of , the warning suppressions in swiglabels.swg stopped working as they appear after this include file. In particular, The _MSC_VER warnings were not working. --- Lib/swig.swg | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Lib/swig.swg b/Lib/swig.swg index 416d40982..ca7586457 100644 --- a/Lib/swig.swg +++ b/Lib/swig.swg @@ -602,6 +602,10 @@ namespace std { * Runtime code * ----------------------------------------------------------------------------- */ + +%insert("runtime") "swiglabels.swg" + + /* The SwigValueWrapper class */ /* @@ -703,8 +707,3 @@ template T SwigValueInit() { %} #endif -/* The swiglabels */ - -%insert("runtime") "swiglabels.swg" - -