summaryrefslogtreecommitdiffstats
path: root/pcilib/py.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2016-03-03 00:50:59 +0100
committerSuren A. Chilingaryan <csa@suren.me>2016-03-03 00:50:59 +0100
commit195c28f3074486165b6e0935362810f8a1fb9531 (patch)
tree56aecf261aaae57e28c08cef573ae6642ec5394d /pcilib/py.h
parent1e53d2d17e611586030e3ff3e9ab87e5bb753c9b (diff)
downloadpcitool-195c28f3074486165b6e0935362810f8a1fb9531.tar.gz
pcitool-195c28f3074486165b6e0935362810f8a1fb9531.tar.bz2
pcitool-195c28f3074486165b6e0935362810f8a1fb9531.tar.xz
pcitool-195c28f3074486165b6e0935362810f8a1fb9531.zip
Make Python problems non-fatal
Diffstat (limited to 'pcilib/py.h')
-rw-r--r--pcilib/py.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/pcilib/py.h b/pcilib/py.h
index c372a09..128fbb6 100644
--- a/pcilib/py.h
+++ b/pcilib/py.h
@@ -5,6 +5,7 @@
#include <pcilib/error.h>
#define pcilib_python_error(...) pcilib_log_python_error(__FILE__, __LINE__, PCILIB_LOG_DEFAULT, PCILIB_LOG_ERROR, __VA_ARGS__)
+#define pcilib_python_warning(...) pcilib_log_python_error(__FILE__, __LINE__, PCILIB_LOG_DEFAULT, PCILIB_LOG_WARNING, __VA_ARGS__)
typedef struct pcilib_py_s pcilib_py_t;
typedef void pcilib_py_object;