From f8feeacb68593063914c58c60e408d8515295b7f Mon Sep 17 00:00:00 2001 From: Eric Wing Date: Thu, 11 Jul 2013 19:11:56 -0700 Subject: [PATCH] v8: Removed the extern "C" around the initialize function because it makes no sense since it requires a C++ templates object as a parameter. --- Lib/javascript/v8/javascriptcode.swg | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Lib/javascript/v8/javascriptcode.swg b/Lib/javascript/v8/javascriptcode.swg index 62267ae52..003658613 100644 --- a/Lib/javascript/v8/javascriptcode.swg +++ b/Lib/javascript/v8/javascriptcode.swg @@ -403,7 +403,8 @@ fail: * ----------------------------------------------------------------------------- */ %fragment("js_initializer", "templates") %{ -extern "C" { +// The extern "C" makes little sense here because the paramater is using C++ objects and templates. +// extern "C" { void $jsname_initialize(v8::Handle global_obj) { @@ -440,5 +441,5 @@ void $jsname_initialize(v8::Handle global_obj) } -} // extern "C" +// } // extern "C" %}