mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-05-07 23:04:47 -04:00
clang-format: Increase column limit from 80 to 120
This commit is contained in:
@@ -20,11 +20,9 @@
|
||||
|
||||
#include "obs-scripting-python.h"
|
||||
|
||||
#define libobs_to_py(type, obs_obj, ownership, py_obj) \
|
||||
libobs_to_py_(#type " *", obs_obj, ownership, py_obj, NULL, __func__, \
|
||||
__LINE__)
|
||||
#define py_to_libobs(type, py_obj, libobs_out) \
|
||||
py_to_libobs_(#type " *", py_obj, libobs_out, NULL, __func__, __LINE__)
|
||||
#define libobs_to_py(type, obs_obj, ownership, py_obj) \
|
||||
libobs_to_py_(#type " *", obs_obj, ownership, py_obj, NULL, __func__, __LINE__)
|
||||
#define py_to_libobs(type, py_obj, libobs_out) py_to_libobs_(#type " *", py_obj, libobs_out, NULL, __func__, __LINE__)
|
||||
|
||||
/* ----------------------------------- */
|
||||
|
||||
@@ -275,8 +273,7 @@ static PyObject *set_current_profile(PyObject *self, PyObject *args)
|
||||
|
||||
/* ----------------------------------- */
|
||||
|
||||
static void frontend_save_callback(obs_data_t *save_data, bool saving,
|
||||
void *priv)
|
||||
static void frontend_save_callback(obs_data_t *save_data, bool saving, void *priv)
|
||||
{
|
||||
struct python_obs_callback *cb = priv;
|
||||
|
||||
@@ -290,8 +287,7 @@ static void frontend_save_callback(obs_data_t *save_data, bool saving,
|
||||
PyObject *py_save_data;
|
||||
|
||||
if (libobs_to_py(obs_data_t, save_data, false, &py_save_data)) {
|
||||
PyObject *args = Py_BuildValue("(ON)", py_save_data,
|
||||
PyBool_FromLong(saving));
|
||||
PyObject *args = Py_BuildValue("(ON)", py_save_data, PyBool_FromLong(saving));
|
||||
|
||||
struct python_obs_callback *last_cb = cur_python_cb;
|
||||
cur_python_cb = cb;
|
||||
@@ -323,8 +319,7 @@ static PyObject *remove_save_callback(PyObject *self, PyObject *args)
|
||||
if (!py_cb || !PyFunction_Check(py_cb))
|
||||
return python_none();
|
||||
|
||||
struct python_obs_callback *cb =
|
||||
find_python_obs_callback(script, py_cb);
|
||||
struct python_obs_callback *cb = find_python_obs_callback(script, py_cb);
|
||||
if (cb)
|
||||
remove_python_obs_callback(cb);
|
||||
return python_none();
|
||||
@@ -393,8 +388,7 @@ static PyObject *remove_event_callback(PyObject *self, PyObject *args)
|
||||
if (!py_cb || !PyFunction_Check(py_cb))
|
||||
return python_none();
|
||||
|
||||
struct python_obs_callback *cb =
|
||||
find_python_obs_callback(script, py_cb);
|
||||
struct python_obs_callback *cb = find_python_obs_callback(script, py_cb);
|
||||
if (cb)
|
||||
remove_python_obs_callback(cb);
|
||||
return python_none();
|
||||
|
||||
Reference in New Issue
Block a user