projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: Make bt_value_null a const pointer
[babeltrace.git]
/
bindings
/
python
/
bt2
/
bt2
/
native_bttrace.i
diff --git
a/bindings/python/bt2/bt2/native_bttrace.i
b/bindings/python/bt2/bt2/native_bttrace.i
index 3f78f450b446834c126345765fac28678775fddd..2e2c123afc0beb1c576c4275f879ddcae1eaaf96 100644
(file)
--- a/
bindings/python/bt2/bt2/native_bttrace.i
+++ b/
bindings/python/bt2/bt2/native_bttrace.i
@@
-93,25
+93,25
@@
void trace_is_static_listener(struct bt_trace *trace, void *py_callable)
}
py_res = PyObject_CallFunction(py_callable, "(O)", py_trace_ptr);
}
py_res = PyObject_CallFunction(py_callable, "(O)", py_trace_ptr);
-
assert
(py_res == Py_None);
+
BT_ASSERT
(py_res == Py_None);
Py_DECREF(py_trace_ptr);
Py_DECREF(py_res);
}
void trace_listener_removed(struct bt_trace *trace, void *py_callable)
{
Py_DECREF(py_trace_ptr);
Py_DECREF(py_res);
}
void trace_listener_removed(struct bt_trace *trace, void *py_callable)
{
-
assert
(py_callable);
+
BT_ASSERT
(py_callable);
Py_DECREF(py_callable);
}
Py_DECREF(py_callable);
}
-static int bt_py3_trace_add_is_sta
it
c_listener(unsigned long long trace_addr,
+static int bt_py3_trace_add_is_sta
ti
c_listener(unsigned long long trace_addr,
PyObject *py_callable)
{
struct bt_trace *trace = (void *) trace_addr;
int ret = 0;
PyObject *py_callable)
{
struct bt_trace *trace = (void *) trace_addr;
int ret = 0;
-
assert
(trace);
-
assert
(py_callable);
+
BT_ASSERT
(trace);
+
BT_ASSERT
(py_callable);
ret = bt_trace_add_is_static_listener(trace,
trace_is_static_listener, trace_listener_removed, py_callable);
if (ret >= 0) {
ret = bt_trace_add_is_static_listener(trace,
trace_is_static_listener, trace_listener_removed, py_callable);
if (ret >= 0) {
@@
-122,5
+122,5
@@
static int bt_py3_trace_add_is_staitc_listener(unsigned long long trace_addr,
}
%}
}
%}
-int bt_py3_trace_add_is_sta
it
c_listener(unsigned long long trace_addr,
+int bt_py3_trace_add_is_sta
ti
c_listener(unsigned long long trace_addr,
PyObject *py_callable);
PyObject *py_callable);
This page took
0.024979 seconds
and
4
git commands to generate.