[Swfdec-commits] swfdec/swfdec_as_function.h

Benjamin Otte company at kemper.freedesktop.org
Thu Aug 21 06:28:22 PDT 2008


 swfdec/swfdec_as_function.h |   13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

New commits:
commit 5bb8a64613b032c3f1bfa5fe38a9cd32cbc7c228
Author: Benjamin Otte <otte at gnome.org>
Date:   Thu Aug 21 13:39:21 2008 +0100

    make this a macro

diff --git a/swfdec/swfdec_as_function.h b/swfdec/swfdec_as_function.h
index 3a45793..baf0b0e 100644
--- a/swfdec/swfdec_as_function.h
+++ b/swfdec/swfdec_as_function.h
@@ -63,13 +63,12 @@ void			swfdec_as_function_call_full	(SwfdecAsFunction *	function,
 							 guint			n_args,
 							 const SwfdecAsValue *	args,
 							 SwfdecAsValue *	return_value);
-static inline void
-swfdec_as_function_call (SwfdecAsFunction *function, SwfdecAsObject *thisp, guint n_args, 
-    const SwfdecAsValue *args, SwfdecAsValue *return_value)
-{
-  swfdec_as_function_call_full (function, thisp, FALSE, 
-      thisp ? thisp->prototype : SWFDEC_AS_OBJECT (function)->prototype, n_args, args, return_value);
-}
+#define swfdec_as_function_call(function, thisp, n_args, args, return_value) G_STMT_START{ \
+  SwfdecAsObject *__thisp = (thisp); \
+  swfdec_as_function_call_full (function, __thisp, FALSE, \
+      __thisp ? __thisp->prototype : SWFDEC_AS_OBJECT (function)->prototype, \
+      n_args, args, return_value); \
+}G_STMT_END
 
 
 G_END_DECLS


More information about the Swfdec-commits mailing list