brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · c75219e Raw
29 lines · c
1//===-- PythonReadline.h ----------------------------------------*- C++ -*-===//2//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-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_PYTHONREADLINE_H10#define LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_PYTHONREADLINE_H11 12#include "lldb/Host/Config.h"13 14#if LLDB_ENABLE_LIBEDIT && defined(__linux__)15// NOTE: Since Python may define some pre-processor definitions which affect the16// standard headers on some systems, you must include Python.h before any17// standard headers are included.18#include "Python.h"19 20// no need to hack into Python's readline module if libedit isn't used.21//22#define LLDB_USE_LIBEDIT_READLINE_COMPAT_MODULE 123 24PyMODINIT_FUNC initlldb_readline(void);25 26#endif27 28#endif // LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_PYTHONREADLINE_H29