Where Online Learning is simpler!
The C and C++ Include Header Files
cat -n /usr/include/wabt/interp/interp-util.h
1 /* 2 * Copyright 2020 WebAssembly Community Group participants 3 * 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 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 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. 15 */ 16 17 #ifndef WABT_INTERP_UTIL_H_ 18 #define WABT_INTERP_UTIL_H_ 19 20 #include <string> 21 #include <string_view> 22 #include <vector> 23 24 #include "wabt/interp/interp.h" 25 26 namespace wabt { 27 28 class Stream; 29 30 namespace interp { 31 32 std::string TypedValueToString(const TypedValue&); 33 34 void WriteValue(Stream* stream, const TypedValue&); 35 36 void WriteValues(Stream* stream, const ValueTypes&, const Values&); 37 38 void WriteTrap(Stream* stream, const char* desc, const Trap::Ptr&); 39 40 void WriteCall(Stream* stream, 41 std::string_view name, 42 const FuncType& func_type, 43 const Values& params, 44 const Values& results, 45 const Trap::Ptr& trap); 46 47 } // namespace interp 48 } // namespace wabt 49 50 #endif // WABT_INTERP_UTIL_H_