From a958fd6930361bead4cb83559400cf602146d083 Mon Sep 17 00:00:00 2001 From: "alberto.ferreira" Date: Sun, 8 Mar 2020 16:24:29 +0000 Subject: [PATCH] [swig] Fix define visibility --- swig/StringArray_API_extensions.i | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/swig/StringArray_API_extensions.i b/swig/StringArray_API_extensions.i index ca9ae45b5d39..17e6d371907d 100644 --- a/swig/StringArray_API_extensions.i +++ b/swig/StringArray_API_extensions.i @@ -20,13 +20,13 @@ #include #include -#define API_OK_OR_VALUE(api_return, return_value) if (api_return == -1) return return_value -#define API_OK_OR_NULL(api_return) API_OK_OR_VALUE(api_return, nullptr) + %inline %{ + #define API_OK_OR_VALUE(api_return, return_value) if (api_return == -1) return return_value + #define API_OK_OR_NULL(api_return) API_OK_OR_VALUE(api_return, nullptr) - class StringArray; typedef void* StringArrayHandle;