Skip to content

Commit 1ac2b7c

Browse files
committed
core: add SWIG data object
1 parent d05963c commit 1ac2b7c

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ SET(${PROJECT_NAME}_HEADERS
128128
include/eigenpy/ufunc.hpp
129129
include/eigenpy/register.hpp
130130
include/eigenpy/stride.hpp
131+
include/eigenpy/swig.hpp
131132
include/eigenpy/version.hpp
132133
)
133134

include/eigenpy/swig.hpp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
//
2+
// Copyright (c) 2020 INRIA
3+
//
4+
5+
#ifndef __eigenpy_swig_hpp__
6+
#define __eigenpy_swig_hpp__
7+
8+
namespace eigenpy
9+
{
10+
struct PySwigObject
11+
{
12+
PyObject_HEAD
13+
void * ptr;
14+
const char * desc;
15+
};
16+
}
17+
18+
#endif // ifndef __eigenpy_swig_hpp__

0 commit comments

Comments
 (0)