1 //===-- PythonReadline.h ----------------------------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_PYTHONREADLINE_H
10 #define LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_PYTHONREADLINE_H
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.
18 // no need to hack into Python's readline module if libedit isn't used.
20 #define LLDB_USE_LIBEDIT_READLINE_COMPAT_MODULE 1
22 extern "C" PyMODINIT_FUNC initlldb_readline(void);
26 #endif // LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_PYTHONREADLINE_H