Index: Source/bindings/templates/methods.cpp |
diff --git a/Source/bindings/templates/methods.cpp b/Source/bindings/templates/methods.cpp |
index e33041bb0a4df4aa0bb441c9ceda7aa41767648e..de374c43d0df4511fa0c3b3d41400a61cbb56da2 100644 |
--- a/Source/bindings/templates/methods.cpp |
+++ b/Source/bindings/templates/methods.cpp |
@@ -437,7 +437,7 @@ static void {{overloads.name}}Method{{world_suffix}}(const v8::FunctionCallbackI |
{##############################################################################} |
-{% macro method_callback(method, world_suffix) %} |
+{% macro method_callback(method, world_suffix, internal_namespace=None) %} |
{% filter conditional(method.conditional_string) %} |
static void {{method.name}}MethodCallback{{world_suffix}}(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
@@ -464,6 +464,8 @@ static void {{method.name}}MethodCallback{{world_suffix}}(const v8::FunctionCall |
{% endif %} |
{% if method.is_custom %} |
{{v8_class}}::{{method.name}}MethodCustom(info); |
+ {% elif internal_namespace %} |
Jens Widell
2014/08/21 13:08:53
You could skip this conditional if |internal_names
yhirano
2014/08/21 13:19:58
Done.
I introduced a new namespace to avoid name c
Jens Widell
2014/08/21 13:58:01
Thanks.
|
+ {{cpp_class}}V8Internal::{{internal_namespace}}::{{method.name}}Method{{world_suffix}}(info); |
{% else %} |
{{cpp_class}}V8Internal::{{method.name}}Method{{world_suffix}}(info); |
{% endif %} |