diff options
author | Chad Austin <chad@imvu.com> | 2013-03-07 18:26:16 -0800 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-04-12 14:25:24 +0300 |
commit | e698d8bbdb77dc7a3c10e2fa9f1676dee194f3ab (patch) | |
tree | 7d4d9545c9995ea1611747da422abca7e540b3b9 | |
parent | 66b9991931f6e69c86437ed25b0f0072af4e9a62 (diff) |
classmethod -> class_function
-rwxr-xr-x | src/embind/embind.js | 2 | ||||
-rwxr-xr-x | system/include/emscripten/bind.h | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/embind/embind.js b/src/embind/embind.js index bd952791..6595973e 100755 --- a/src/embind/embind.js +++ b/src/embind/embind.js @@ -928,7 +928,7 @@ function __embind_register_class_function( }); } -function __embind_register_class_classmethod( +function __embind_register_class_class_function( rawClassType, methodName, argCount, diff --git a/system/include/emscripten/bind.h b/system/include/emscripten/bind.h index 6e68c206..2c4df7d3 100755 --- a/system/include/emscripten/bind.h +++ b/system/include/emscripten/bind.h @@ -137,7 +137,7 @@ namespace emscripten { size_t memberPointerSize, void* memberPointer); - void _embind_register_class_classmethod( + void _embind_register_class_class_function( TYPEID classType, const char* methodName, unsigned argCount, @@ -728,7 +728,7 @@ namespace emscripten { .template constructor<val>() ; - return classmethod( + return class_function( "implement", &operator_new<WrapperType, val>, allow_raw_pointer<ret_val>()); @@ -814,11 +814,11 @@ namespace emscripten { } template<typename ReturnType, typename... Args, typename... Policies> - class_& classmethod(const char* methodName, ReturnType (*classMethod)(Args...), Policies...) { + class_& class_function(const char* methodName, ReturnType (*classMethod)(Args...), Policies...) { using namespace internal; typename WithPolicies<Policies...>::template ArgTypeList<ReturnType, Args...> args; - _embind_register_class_classmethod( + _embind_register_class_class_function( TypeID<ClassType>::get(), methodName, args.count, |