@@ -150,23 +150,14 @@ class ContextBase : public RootInterface,
150
150
const std::shared_ptr<PluginHandleBase> &plugin_handle); // Stream context.
151
151
virtual ~ContextBase ();
152
152
153
- #ifdef PROXY_WASM_CPP_HOST_MORE_VIRTUAL_METHODS
154
153
virtual WasmBase *wasm () const { return wasm_; }
155
- #else
156
- WasmBase *wasm () const { return wasm_; }
157
- #endif
158
154
uint32_t id () const { return id_; }
159
155
// The VM Context used for calling "malloc" has an id_ == 0.
160
156
bool isVmContext () const { return id_ == 0 ; }
161
157
// Root Contexts have the VM Context as a parent.
162
158
bool isRootContext () const { return parent_context_id_ == 0 ; }
163
- #ifdef PROXY_WASM_CPP_HOST_MORE_VIRTUAL_METHODS
164
159
virtual ContextBase *parent_context () const { return parent_context_; }
165
160
virtual ContextBase *root_context () const {
166
- #else
167
- ContextBase *parent_context () const { return parent_context_; }
168
- ContextBase *root_context () const {
169
- #endif
170
161
const ContextBase *previous = this ;
171
162
ContextBase *parent = parent_context_;
172
163
while (parent != previous) {
@@ -179,11 +170,7 @@ class ContextBase : public RootInterface,
179
170
std::string_view log_prefix () const {
180
171
return isRootContext () ? root_log_prefix_ : plugin_->log_prefix ();
181
172
}
182
- #ifdef PROXY_WASM_CPP_HOST_MORE_VIRTUAL_METHODS
183
173
virtual WasmVm *wasmVm () const ;
184
- #else
185
- WasmVm *wasmVm () const ;
186
- #endif
187
174
188
175
// Called before deleting the context.
189
176
virtual void destroy ();
0 commit comments