Add downcasting

This commit is contained in:
Siu Kwan Lam 2013-01-25 15:35:23 -06:00
commit 3c81157ede
6 changed files with 106 additions and 32 deletions

View file

@ -37,9 +37,9 @@ PyObject* make_small_vector_from_types(PyObject* self, PyObject* args) {
}
static PyMethodDef extra_methodtable[] = {
#define method(func) { #func, (PyCFunction)func, METH_VARARGS, NULL }
method( make_raw_ostream_for_printing ),
method( make_small_vector_from_types ),
{ NULL }
#undef method
#define method(func) { #func, (PyCFunction)func, METH_VARARGS, NULL }
method( make_raw_ostream_for_printing ),
method( make_small_vector_from_types ),
#undef method
{ NULL }
};