diff object.h @ 13:ca17531e8c81

Added an object class.
author Atul Varma <varmaa@toolness.com>
date Sun, 28 Jun 2009 18:19:14 -0700
parents
children f3223debd70b
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/object.h	Sun Jun 28 18:19:14 2009 -0700
@@ -0,0 +1,19 @@
+#ifndef PYM_OBJECT_H
+#define PYM_OBJECT_H
+
+#include "runtime.h"
+
+#include <jsapi.h>
+#include <Python/Python.h>
+
+extern JSClass PYM_JS_ObjectClass;
+
+typedef struct {
+  PyObject_HEAD
+  PYM_JSRuntimeObject *runtime;
+  JSObject *obj;
+} PYM_JSObject;
+
+extern PyTypeObject PYM_JSObjectType;
+
+#endif