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 #include "lldb/Host/Config.h"
14 #if LLDB_ENABLE_LIBEDIT && defined(__linux__)
15 // NOTE: Since Python may define some pre-processor definitions which affect the
16 // standard headers on some systems, you must include Python.h before any
17 // standard headers are included.
20 // no need to hack into Python's readline module if libedit isn't used.
22 #define LLDB_USE_LIBEDIT_READLINE_COMPAT_MODULE 1
24 PyMODINIT_FUNC
initlldb_readline(void);
28 #endif // LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_PYTHONREADLINE_H