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