1 /** Mirror warnings.h */ 2 3 module deimos.python.warnings; 4 5 import deimos.python.pyport; 6 import deimos.python.object; 7 8 extern(C): 9 10 version(Python_3_4_Or_Later) { 11 /// _ 12 int PyErr_WarnEx( 13 PyObject* category, 14 const (char)* message, 15 Py_ssize_t stack_level); 16 17 /// _ 18 int PyErr_WarnFormat( 19 PyObject* category, 20 Py_ssize_t stack_level, 21 const (char)* format, 22 ...); 23 24 /// _ 25 int PyErr_WarnExplicit( 26 PyObject* category, 27 const(char)* message, 28 const(char)* filename, 29 int lineno, 30 const(char)* module_, 31 PyObject* registry); 32 33 34 } 35 version(Python_3_6_Or_Later) { 36 /// _ 37 int PyErr_ResourceWarning( 38 PyObject* source, 39 Py_ssize_t stack_level, 40 const(char)* format, 41 ...); 42 }