From 04d596f0408ccd7b591cf323bf2602b545155dcc Mon Sep 17 00:00:00 2001 From: Chad Austin Date: Mon, 25 Feb 2013 16:04:14 -0800 Subject: Replace operator call with a method invoking said operator call, so isinstance works again. When Function.create exists we can have the benefit of both worlds. --- system/include/emscripten/bind.h | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'system') diff --git a/system/include/emscripten/bind.h b/system/include/emscripten/bind.h index 1ef462bc..5806d57f 100755 --- a/system/include/emscripten/bind.h +++ b/system/include/emscripten/bind.h @@ -141,12 +141,6 @@ namespace emscripten { GenericFunction invoker, GenericFunction method); - void _embind_register_class_operator_call( - TYPEID classType, - unsigned argCount, - TYPEID argTypes[], - GenericFunction invoker); - void _embind_register_class_operator_array_get( TYPEID classType, TYPEID elementType, @@ -754,16 +748,8 @@ namespace emscripten { } template - class_& calloperator(Policies...) { - using namespace internal; - - typename WithPolicies::template ArgTypeList args; - _embind_register_class_operator_call( - TypeID::get(), - args.count, - args.types, - reinterpret_cast(&internal::FunctorInvoker::invoke)); - return *this; + class_& calloperator(const char* methodName, Policies... policies) { + return method(methodName, &ClassType::operator(), policies...); } template -- cgit v1.2.3-70-g09d2