2 * Copyright 2017 WebAssembly Community Group participants
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #define WABT_TRACING 1
18 #include "wabt/tracing.h"
23 const char* indent_text
= " ";
26 for (size_t i
= 0; i
< indent
; ++i
)
27 fputs(indent_text
, stderr
);
42 } // end of anonymous namespace
48 TraceScope::TraceScope(const char* method
) : method_(method
) {
53 TraceScope::~TraceScope() {
56 fputs(method_
, stderr
);
60 void TraceScope::PrintEnter(const char* method
) {
63 fputs(method
, stderr
);
67 void TraceScope::PrintNewline() {
71 } // end of namespace wabt