obs-scripting: Replace OBS_UNUSED with UNUSED_PARAMETER

OBS_UNUSED is not portable to MSVC.
master
tytan652 2022-07-19 19:30:51 +02:00
parent 057e433bdb
commit ba6f9f3f46
1 changed files with 5 additions and 2 deletions

View File

@ -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) {