view object.h @ 15:baa4cb961330

JS objects in python-land are now rooted while in python-land so that they're not gc'd while in python-land.
author Atul Varma <varmaa@toolness.com>
date Sun, 28 Jun 2009 18:39:43 -0700
parents ca17531e8c81
children f3223debd70b
line wrap: on
line source

#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