Skip to content

Commit 453bb9a

Browse files
authored
Split C++ Func/Table/Memory/Global to their own headers (#10688)
I did my best to separate out headers but I don't understand enough C++ to fully sever `val.hh` and `func.hh` so they sort of circularly reference each other now.
1 parent b1d3ab0 commit 453bb9a

File tree

14 files changed

+1027
-908
lines changed

14 files changed

+1027
-908
lines changed

crates/c-api/include/wasmtime.hh

Lines changed: 6 additions & 860 deletions
Large diffs are not rendered by default.

crates/c-api/include/wasmtime/error.hh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,3 @@ private:
121121
} // namespace wasmtime
122122

123123
#endif // WASMTIME_ERROR_HH
124-
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* \file wasmtime/extern.hh
3+
*/
4+
5+
#ifndef WASMTIME_EXTERN_HH
6+
#define WASMTIME_EXTERN_HH
7+
8+
#include <wasmtime/extern.h>
9+
#include <variant>
10+
11+
namespace wasmtime {
12+
13+
class Global;
14+
class Func;
15+
class Memory;
16+
class Table;
17+
18+
/// \typedef Extern
19+
/// \brief Representation of an external WebAssembly item
20+
typedef std::variant<Func, Global, Memory, Table> Extern;
21+
22+
} // namespace wasmtime
23+
24+
#endif // WASMTIME_EXTERN_HH

0 commit comments

Comments
 (0)