diff options
author | AnotherTest <ali.mpfard@gmail.com> | 2020-06-25 17:15:23 +0430 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-05 15:43:14 +0200 |
commit | 639c1a17379054138d350c85e6fcab3d886707d8 (patch) | |
tree | 2e1e3e20f4736617d5047d0c7ff5ffb5853182a2 /Shell/AST.cpp | |
parent | d2bdbc3e775e08b16d38033d978417955e7c2bfa (diff) | |
download | serenity-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.cpp | 4 |
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) |