File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 1
1
#include "pycall_internal.h"
2
+ #include "pycall.h"
2
3
#include <ruby/encoding.h>
3
4
4
5
#include <stdarg.h>
@@ -143,6 +144,12 @@ get_pyobj_ptr(VALUE obj)
143
144
return pyobj ;
144
145
}
145
146
147
+ PyObject *
148
+ pycall_pyptr_get_pyobj_ptr (VALUE pyptr )
149
+ {
150
+ return get_pyobj_ptr (pyptr );
151
+ }
152
+
146
153
static inline PyObject *
147
154
try_get_pyobj_ptr (VALUE obj )
148
155
{
Original file line number Diff line number Diff line change
1
+ #ifndef PYCALL_H
2
+ #define PYCALL_H 1
3
+
4
+ #if defined(__cplusplus )
5
+ extern "C" {
6
+ #if 0
7
+ } /* satisfy cc-mode */
8
+ #endif
9
+ #endif
10
+
11
+ VALUE pycall_pyptr_new (PyObject * pyobj );
12
+ PyObject * pycall_pyptr_get_pyobj_ptr (VALUE pyptr );
13
+
14
+ #if defined(__cplusplus )
15
+ #if 0
16
+ { /* satisfy cc-mode */
17
+ #endif
18
+ } /* extern "C" { */
19
+ #endif
20
+
21
+ #endif /* PYCALL_H */
You can’t perform that action at this time.
0 commit comments