LLDB
mainline
llvm-project
lldb
source
Plugins
ScriptInterpreter
Python
PythonReadline.h
Go to the documentation of this file.
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-exception
6
//
7
//===----------------------------------------------------------------------===//
8
9
#ifndef LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_PYTHONREADLINE_H
10
#define LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_PYTHONREADLINE_H
11
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 the
16
// standard headers on some systems, you must include Python.h before any
17
// 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 1
23
24
PyMODINIT_FUNC initlldb_readline(
void
);
25
26
#endif
27
28
#endif
// LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_PYTHONREADLINE_H
Generated on Wed Dec 18 2024 08:35:30 for LLDB by
1.9.6