diff utils.h @ 33:3f8a2db496f5

Changed PYM_pyObjectToJsval() to simply return an int status/error code; this way callers don't have to worry about decreasing the reference count of a Py_NONE.
author Atul Varma <varmaa@toolness.com>
date Tue, 30 Jun 2009 22:42:48 -0700
parents 3b2bdf2823bb
children 0b9a316ce4ef
line wrap: on
line diff
--- a/utils.h	Tue Jun 30 22:37:00 2009 -0700
+++ b/utils.h	Tue Jun 30 22:42:48 2009 -0700
@@ -14,7 +14,7 @@
 
 extern PyObject *PYM_error;
 
-extern PyObject *
+extern int
 PYM_pyObjectToJsval(JSContext *cx,
                     PyObject *object,
                     jsval *rval);