Remove unused next_func_ptr field of binding_base

This commit is contained in:
刘皓 2025-05-14 21:16:50 -04:00
parent 1f136cd6ff
commit e3cbed2fb3
No known key found for this signature in database
GPG key ID: 7901753DB465B711
2 changed files with 1 additions and 2 deletions

View file

@ -40,7 +40,7 @@ binding_base::stack_frame::~stack_frame() {
}
}
binding_base::binding_base(std::shared_ptr<struct w2c_ruby> m) : next_func_ptr(-1), _instance(m) {}
binding_base::binding_base(std::shared_ptr<struct w2c_ruby> m) : _instance(m) {}
binding_base::~binding_base() {
// Destroy all stack frames in order from top to bottom to enforce a portable, compiler-independent ordering of stack frame destruction

View file

@ -221,7 +221,6 @@ namespace mkxp_sandbox {
std::shared_ptr<struct w2c_ruby> _instance;
std::unordered_map<key_t, struct fiber, boost::hash<key_t>> fibers;
wasm_ptr_t next_func_ptr;
wasm_ptr_t stack_ptr;
public: