Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / devtools / v9 / share / swig / 1.3.26 / python / pyobject.swg
CommitLineData
920dae64
AT
1/* ------------------------------------------------------------
2 * PyObject * - Just pass straight through unmodified
3 * ------------------------------------------------------------ */
4
5%typemap(in) PyObject * "$1 = $input;";
6%typemap(out) PyObject * "$result = $1;";
7
8%typemap(constcode) PyObject * "PyDict_SetItemString(d,\"$symname\", $value);";
9
10%typemap(directorin, parse="O") PyObject * "";
11%typemap(directorout) PyObject * "$result = $input;";
12
13%typecheck(SWIG_TYPECHECK_POINTER) PyObject * "$1 = ($input != 0);";
14
15%typemap(throws) PyObject *
16 "PyErr_SetObject(PyExc_RuntimeError, $1);
17 SWIG_fail;";