]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h
MFC r356004:
[FreeBSD/FreeBSD.git] / contrib / llvm-project / lldb / source / Plugins / ScriptInterpreter / Python / PythonReadline.h
1 //===-- PythonReadline.h ----------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8
9 #ifndef LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_PYTHONREADLINE_H
10 #define LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_PYTHONREADLINE_H
11
12 #if !defined(LLDB_DISABLE_LIBEDIT) && defined(__linux__)
13 // NOTE: Since Python may define some pre-processor definitions which affect the
14 // standard headers on some systems, you must include Python.h before any
15 // standard headers are included.
16 #include "Python.h"
17
18 // no need to hack into Python's readline module if libedit isn't used.
19 //
20 #define LLDB_USE_LIBEDIT_READLINE_COMPAT_MODULE 1
21
22 extern "C" PyMODINIT_FUNC initlldb_readline(void);
23
24 #endif
25
26 #endif // LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_PYTHONREADLINE_H