v8: Removed the extern "C" around the initialize function because it makes no sense since it requires a C++ templates object as a parameter.

This commit is contained in:
Eric Wing 2013-07-11 19:11:56 -07:00 • committed by Oliver Buchtala
commit f8feeacb68

View file

@ -403,7 +403,8 @@ fail:
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
%fragment("js_initializer", "templates") %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<v8::Object> global_obj) void $jsname_initialize(v8::Handle<v8::Object> global_obj)
{ {
@ -440,5 +441,5 @@ void $jsname_initialize(v8::Handle<v8::Object> global_obj)
} }
} // extern "C" // } // extern "C"
%} %}