aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/include/emscripten/bind.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/system/include/emscripten/bind.h b/system/include/emscripten/bind.h
index eede0755..7399bd37 100644
--- a/system/include/emscripten/bind.h
+++ b/system/include/emscripten/bind.h
@@ -987,6 +987,11 @@ namespace emscripten {
SmartPtrIfNeeded(U&, const char*) {
}
};
+
+ template<typename PointerType, typename WrapperType>
+ val wrapped_extend(const val& properties) {
+ return val::undefined();
+ }
};
template<typename ClassType, typename BaseSpecifier = internal::NoBaseClass>
@@ -1103,10 +1108,15 @@ namespace emscripten {
;
SmartPtrIfNeeded<PointerType> _(cls, pointerName);
- return class_function(
- "implement",
- &wrapped_new<PointerType, WrapperType, val>,
- allow_raw_pointer<ret_val>());
+ return
+ class_function(
+ "implement",
+ &wrapped_new<PointerType, WrapperType, val>,
+ allow_raw_pointer<ret_val>())
+ .class_function(
+ "extend",
+ &wrapped_extend<PointerType, WrapperType>)
+ ;
}
template<typename ReturnType, typename... Args, typename... Policies>