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