diff options
author | Chad Austin <chad@imvu.com> | 2013-03-05 14:02:29 -0800 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-04-12 14:24:48 +0300 |
commit | 97373dc8c29bdc205ffc7f0674edaa9eff80fb0c (patch) | |
tree | 233507431ff6268e062056db9b45ec3b9de978c6 /system | |
parent | ececfcc02e2020c2c965cb0d6edc0fc321def581 (diff) |
kinda start thinking about making isinstance work with base classes
Diffstat (limited to 'system')
-rwxr-xr-x | system/include/emscripten/bind.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/system/include/emscripten/bind.h b/system/include/emscripten/bind.h index ad11395b..cbc5cb8e 100755 --- a/system/include/emscripten/bind.h +++ b/system/include/emscripten/bind.h @@ -105,6 +105,7 @@ namespace emscripten { TYPEID classType, TYPEID pointerType, TYPEID constPointerType, + TYPEID baseClassType, bool isPolymorphic, const char* className, GenericFunction destructor); @@ -610,7 +611,7 @@ namespace emscripten { #define EMSCRIPTEN_WRAPPER(T) \ T(const ::emscripten::val& v): wrapper(v) {} - // TODO: support external class constructors + // TODO: support base class template<typename ClassType> class class_ { public: @@ -622,6 +623,7 @@ namespace emscripten { TypeID<ClassType>::get(), TypeID<AllowedRawPointer<ClassType>>::get(), TypeID<AllowedRawPointer<const ClassType>>::get(), + 0, std::is_polymorphic<ClassType>::value, name, reinterpret_cast<GenericFunction>(&raw_destructor<ClassType>)); |