Mercurial > MadButterfly
changeset 657:32d0eef1ee46
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.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sat, 31 Jul 2010 14:37:19 +0800 |
parents | 38c720272dd5 |
children | 62c2de99b03a |
files | tools/gen_v8_binding.m4 |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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