Mercurial > pymonkey
annotate object.h @ 19:fbb9a61fa030
Moved context creation code into its own public function in context.c.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Sun, 28 Jun 2009 20:08:59 -0700 |
parents | f3223debd70b |
children | fc04e5f1c675 |
rev | line source |
---|---|
13 | 1 #ifndef PYM_OBJECT_H |
2 #define PYM_OBJECT_H | |
3 | |
4 #include "runtime.h" | |
5 | |
6 #include <jsapi.h> | |
7 #include <Python/Python.h> | |
8 | |
9 extern JSClass PYM_JS_ObjectClass; | |
10 | |
11 typedef struct { | |
12 PyObject_HEAD | |
13 PYM_JSRuntimeObject *runtime; | |
14 JSObject *obj; | |
15 } PYM_JSObject; | |
16 | |
17 extern PyTypeObject PYM_JSObjectType; | |
18 | |
19
fbb9a61fa030
Moved context creation code into its own public function in context.c.
Atul Varma <varmaa@toolness.com>
parents:
18
diff
changeset
|
19 extern PYM_JSObject * |
fbb9a61fa030
Moved context creation code into its own public function in context.c.
Atul Varma <varmaa@toolness.com>
parents:
18
diff
changeset
|
20 PYM_newJSObject(PYM_JSRuntimeObject *runtime, JSObject *obj); |
fbb9a61fa030
Moved context creation code into its own public function in context.c.
Atul Varma <varmaa@toolness.com>
parents:
18
diff
changeset
|
21 |
13 | 22 #endif |