Skip to content

Commit 835472e

Browse files
committed
Add public header file
1 parent 79e27bb commit 835472e

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

ext/pycall/pycall.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "pycall_internal.h"
2+
#include "pycall.h"
23
#include <ruby/encoding.h>
34

45
#include <stdarg.h>

ext/pycall/pycall.h

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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 */

0 commit comments

Comments
 (0)