-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathPython.h
51 lines (44 loc) · 1.1 KB
/
Python.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*****************************************************************************/
/**
* @file Python.h
* @author Naohisa Sakamoto
*/
/*****************************************************************************/
#pragma once
#include <string>
#include <kvs/Compiler>
#if KVS_COMPILER_SUPPORT_CXX11
#if defined( __clang__ )
#pragma clang diagnostic push
#if (KVS_PYTHON_VERSION == 2)
#pragma clang diagnostic ignored "-Wdeprecated-register"
#endif
#include <Python.h>
#pragma clang diagnostic pop
#elif defined( __GNUC__ )
#pragma GCC diagnostic push
#if (KVS_PYTHON_VERSION == 2) && ( __GNUC__ >= 7 )
#pragma GCC diagnostic ignored "-Wregister"
#endif
#include <Python.h>
#pragma GCC diagnostic pop
#else
#include <Python.h>
#endif
#else
#include <Python.h>
#endif
#if (KVS_PYTHON_VERSION == 3)
#define KVS_PYTHON3
#endif
namespace kvs
{
namespace python
{
std::string Description();
std::string Version();
void Initialize( const bool import = true );
void Finalize();
bool IsInitialized();
} // end of namespace python
} // end of namespace kvs