This patch changes the implementation of Lua's print() function to
respect io.stdout.
The original implementation uses lua_writestring() internally, which is
hardcoded to stdout.
Paths
| Differential D90787
[LLDB-lua] modify Lua's 'print' to respect 'io.stdout' ClosedPublic Authored by tammela on Nov 4 2020, 12:50 PM.
Details Summary This patch changes the implementation of Lua's print() function to The original implementation uses lua_writestring() internally, which is
Diff Detail
Event TimelineComment Actions This is great, it's been bothering me a lot. Thank Pedro! Could you please add a test case (something similar to `lldb/test/Shell/ScriptInterpreter/Lua/io.test should be fine). This revision is now accepted and ready to land.Nov 5 2020, 8:21 AM This revision was landed with ongoing or failed builds.Nov 5 2020, 1:32 PM Closed by commit rGca17571051d4: [LLDB-lua] modify Lua's 'print' to respect 'io.stdout' (authored by tammela). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 302945 lldb/source/Plugins/ScriptInterpreter/Lua/Lua.hlldb/source/Plugins/ScriptInterpreter/Lua/Lua.cpp
|
clang-tidy: error: 'lldb/lldb-types.h' file not found [clang-diagnostic-error]
not useful
clang-tidy: error: 'lldb/lldb-types.h' file not found [clang-diagnostic-error]
not useful