Apply clang-format for more src files and update spec test script (#775)

Apply clang-format for core/iwasm/include, core/iwasm/common and
core/iwasm/aot files.

Update spec cases test script:
- Checkout latest commit of https://github.com/WebAssembly/spec
- Checkout main branch but not master of https://github.com/WebAssembly/threads
- Update wabt to latest version

And update source debugging document.

Signed-off-by: Wenyong Huang <wenyong.huang@intel.com>
This commit is contained in:
Wenyong Huang
2021-10-08 17:47:11 +08:00
committed by GitHub
parent 6415e1b006
commit 52b6c73d9c
37 changed files with 2835 additions and 2875 deletions

View File

@ -1,7 +1,7 @@
// WebAssembly C API
#ifndef WASM_H
#define WASM_H
#ifndef _WASM_C_API_H_
#define _WASM_C_API_H_
#include <stddef.h>
#include <stdint.h>
@ -11,11 +11,11 @@
#ifndef WASM_API_EXTERN
#if defined(_MSC_BUILD)
#if defined(COMPILING_WASM_RUNTIME_API)
#define WASM_API_EXTERN __declspec(dllexport)
#else
#define WASM_API_EXTERN __declspec(dllimport)
#endif
#if defined(COMPILING_WASM_RUNTIME_API)
#define WASM_API_EXTERN __declspec(dllexport)
#else
#define WASM_API_EXTERN __declspec(dllimport)
#endif
#else
#define WASM_API_EXTERN
#endif
@ -25,6 +25,8 @@
extern "C" {
#endif
/* clang-format off */
///////////////////////////////////////////////////////////////////////////////
// Auxiliaries
@ -776,8 +778,10 @@ static inline void* wasm_val_ptr(const wasm_val_t* val) {
#undef own
/* clang-format on */
#ifdef __cplusplus
} // extern "C"
} // extern "C"
#endif
#endif // #ifdef WASM_H
#endif // #ifdef _WASM_C_API_H_