view undefined.h @ 40:8a7abd0bb48d

Renamed PYM_newJSFunction() to PYM_newJSFunctionFromCallable(). PYM_newJSObject() now returns objects of type PYM_JSFunctionType as needed.
author Atul Varma <varmaa@toolness.com>
date Fri, 03 Jul 2009 20:04:01 -0700
parents 551ba05fe6ad
children bc4263c6ae82
line wrap: on
line source

#ifndef PYM_UNDEFINED_H
#define PYM_UNDEFINED_H

#include <Python/Python.h>

#define Py_RETURN_UNDEFINED  { Py_INCREF(PYM_undefined);        \
                               return PYM_undefined; }

typedef struct {
  PyObject_HEAD
} PYM_undefinedObject;

extern PyTypeObject PYM_undefinedType;

extern PyObject *PYM_undefined;

#endif