mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
obs-scripting: Replace OBS_UNUSED with UNUSED_PARAMETER
OBS_UNUSED is not portable to MSVC.
This commit is contained in:
+5
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user