Path: blob/main/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h
39638 views
//===-- PythonReadline.h ----------------------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_PYTHONREADLINE_H9#define LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_PYTHONREADLINE_H1011#include "lldb/Host/Config.h"1213#if LLDB_ENABLE_LIBEDIT && defined(__linux__)14// NOTE: Since Python may define some pre-processor definitions which affect the15// standard headers on some systems, you must include Python.h before any16// standard headers are included.17#include "Python.h"1819// no need to hack into Python's readline module if libedit isn't used.20//21#define LLDB_USE_LIBEDIT_READLINE_COMPAT_MODULE 12223PyMODINIT_FUNC initlldb_readline(void);2425#endif2627#endif // LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_PYTHONREADLINE_H282930