summaryrefslogtreecommitdiff
path: root/Shell/AST.cpp
diff options
context:
space:
mode:
authorAnotherTest <ali.mpfard@gmail.com>2020-06-25 17:15:23 +0430
committerAndreas Kling <kling@serenityos.org>2020-07-05 15:43:14 +0200
commit639c1a17379054138d350c85e6fcab3d886707d8 (patch)
tree2e1e3e20f4736617d5047d0c7ff5ffb5853182a2 /Shell/AST.cpp
parentd2bdbc3e775e08b16d38033d978417955e7c2bfa (diff)
downloadserenity-639c1a17379054138d350c85e6fcab3d886707d8.zip
Shell: Build as part of Lagom as well
Bringing the Serenity Shell to your very own host system :^)
Diffstat (limited to 'Shell/AST.cpp')
-rw-r--r--Shell/AST.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Shell/AST.cpp b/Shell/AST.cpp
index 1f64d81c13..24c7ae3bef 100644
--- a/Shell/AST.cpp
+++ b/Shell/AST.cpp
@@ -49,7 +49,9 @@ static inline RefPtr<T> create(std::initializer_list<RefPtr<Value>> arg)
static inline void print_indented(const String& str, int indent)
{
- dbgprintf("%.*c%s\n", indent * 2, ' ', str.characters());
+ for (auto i = 0; i < indent; ++i)
+ dbgprintf(" ");
+ dbgprintf("%s\n", str.characters());
}
static inline Vector<Command> join_commands(Vector<Command> left, Vector<Command> right)