Install Constants */
| 9784 | |
| 9785 | /* Install Constants */ |
| 9786 | SWIGINTERN void |
| 9787 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { |
| 9788 | PyObject *obj = 0; |
| 9789 | size_t i; |
| 9790 | for (i = 0; constants[i].type; ++i) { |
| 9791 | switch(constants[i].type) { |
| 9792 | case SWIG_PY_POINTER: |
| 9793 | obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); |
| 9794 | break; |
| 9795 | case SWIG_PY_BINARY: |
| 9796 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); |
| 9797 | break; |
| 9798 | default: |
| 9799 | obj = 0; |
| 9800 | break; |
| 9801 | } |
| 9802 | if (obj) { |
| 9803 | PyDict_SetItemString(d, constants[i].name, obj); |
| 9804 | Py_DECREF(obj); |
| 9805 | } |
| 9806 | } |
| 9807 | } |
| 9808 | |
| 9809 | /* -----------------------------------------------------------------------------*/ |
| 9810 | /* Fix SwigMethods to carry the callback ptrs when needed */ |
nothing calls this directly
no outgoing calls
no test coverage detected