# HG changeset patch # User Thinker K.F. Li # Date 1280558239 -28800 # Node ID 32d0eef1ee46470f5db312c205afe290861eb34c # Parent 38c720272dd5ff674b4278e3df61b2f402f156ec Force type-casting for member variables. For some member that need a casting for the type is that what we want. For example, casting a void * type to a struct pointer type. This force will skip type checking, but it works for the variables with a generic type and we want to specialize its type. diff -r 38c720272dd5 -r 32d0eef1ee46 tools/gen_v8_binding.m4 --- a/tools/gen_v8_binding.m4 Sat Jul 31 14:11:01 2010 +0800 +++ b/tools/gen_v8_binding.m4 Sat Jul 31 14:37:19 2010 +0800 @@ -45,7 +45,7 @@ STRUCT_TYPE *data; data = (STRUCT_TYPE *)UNWRAP(self); - return ]PROJ_PREFIX[$][2_new(data->$][1); + return ]PROJ_PREFIX[$][2_new(($][3 *)data->$][1); } static void