Skip to content

Commit 02a8d1c

Browse files
committed
Support for swig 4.1.0
In swig 4.1.0, the complicated handling of "SWIG_V8_VERSION" has been cleaned up a bit. I made the same changes as in this swig. Signed-off-by: Hirokazu MORIKAWA <[email protected]>
1 parent 3f7dcc6 commit 02a8d1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common_top.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ void cleanUp()
2727
/* Call the v8 garbage collector as long as there is memory to clean up
2828
* See https://codereview.chromium.org/412163003 for this API change
2929
*/
30-
#if (SWIG_V8_VERSION < 0x032838)
30+
#if (V8_MAJOR_VERSION-0) < 4 && (SWIG_V8_VERSION < 0x032838)
3131
while (!v8::V8::IdleNotificationDeadline())
3232
#else
3333
while (!v8::Isolate::GetCurrent()->IdleNotificationDeadline(1000))

0 commit comments

Comments
 (0)