view runtime.h @ 37:d4efcbb06964

Added a new PYM_JSFunction type, PYM_JSContext.define_property(), and PYM_JSContext.new_function(). Also fixed a memory leak.
author Atul Varma <varmaa@toolness.com>
date Thu, 02 Jul 2009 22:42:31 -0700
parents 951ad1b15587
children bc4263c6ae82
line wrap: on
line source

#ifndef PYM_RUNTIME_H
#define PYM_RUNTIME_H

#include <jsapi.h>
#include <jsdhash.h>
#include <Python/Python.h>

typedef struct {
  PyObject_HEAD
  JSRuntime *rt;
  JSDHashTable objects;
} PYM_JSRuntimeObject;

extern PyTypeObject PYM_JSRuntimeType;

#endif