All pastes #181760 Raw Edit

Miscellany

public cpp v1 · immutable
#181760 ·published 2006-09-25 11:19 UTC
rendered paste body
	PyObject *module;	module = Py_InitModule("MirPy", MirPyMethods);		ServiceNotFoundError = PyErr_NewException("MirPy.ServiceNotFoundError", NULL, NULL);	PythonServicesPlaceholder = PyDict_New();	PythonEventsPlaceholder = PyDict_New();	Py_INCREF(ServiceNotFoundError);	Py_INCREF(PythonServicesPlaceholder);	Py_INCREF(PythonEventsPlaceholder);	PyModule_AddObject(module, "ServiceNotFoundError", ServiceNotFoundError);	PyModule_AddObject(module, "PythonServices", PythonServicesPlaceholder);	PyModule_AddObject(module, "PythonEventCallbacks", PythonEventsPlaceholder);