Browse Source

obs-scripting: Replace OBS_UNUSED with UNUSED_PARAMETER

OBS_UNUSED is not portable to MSVC.
tytan652 3 năm trước cách đây
mục cha
commit
ba6f9f3f46
1 tập tin đã thay đổi với 5 bổ sung2 xóa
  1. 5 2
      deps/obs-scripting/obs-scripting-python-import.h

+ 5 - 2
deps/obs-scripting/obs-scripting-python-import.h

@@ -233,9 +233,12 @@ extern bool import_python(const char *python_path);
 #define _Py_NoneStruct (*Import__Py_NoneStruct)
 #define PyTuple_New Import_PyTuple_New
 #if PY_VERSION_HEX >= 0x030800f0
-static inline void Import__Py_DECREF(const char *filename OBS_UNUSED,
-				     int lineno OBS_UNUSED, PyObject *op)
+static inline void Import__Py_DECREF(const char *filename, int lineno,
+				     PyObject *op)
 {
+	UNUSED_PARAMETER(filename);
+	UNUSED_PARAMETER(lineno);
+
 	if (--op->ob_refcnt != 0) {
 #ifdef Py_REF_DEBUG
 		if (op->ob_refcnt < 0) {