view undefined.h @ 47:3f4982759e55

Converting JS exceptions into Python exceptions is now doable, albeit not yet implemented, thanks to the discovery of JSOPTION_DONT_REPORT_UNCAUGHT. Also, JS warnings are now converted into Python warnings.
author Atul Varma <varmaa@toolness.com>
date Mon, 06 Jul 2009 08:13:45 -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