GNOME Bugzilla – Bug 657279
function.c: Use a better toString
Last modified: 2011-08-25 18:01:01 UTC
It can be handy to know the actual symbol that you're calling, so improve the current toString by sticking the symbol name in there in place of the less useful "native code".
Created attachment 194656 [details] [review] function.c: Use a better toString
Review of attachment 194656 [details] [review]: ::: gi/function.c @@ +1084,3 @@ + string = g_strdup_printf("function %s(){\n\t[%s]\n}", + g_base_info_get_name ((GIBaseInfo *) priv->info), + g_function_info_get_symbol (priv->info)); I'd prefer to keep the term "native" in there somewhere, or just a hint that it's Not JavaScript in some way. How about: function foo() { /* proxy for native symbol someclass_foo(); */ }
Created attachment 194725 [details] [review] function.c: Use a better toString It can be handy to know the actual symbol that you're calling, so improve the current toString by sticking the symbol name in there in place of the less useful "native code". This better?
Review of attachment 194725 [details] [review]: Cool by me.
Attachment 194725 [details] pushed as 05096d9 - function.c: Use a better toString