Host function to erase std::set by key.
| 253 | |
| 254 | // Host function to erase std::set<uint32_t> by key. |
| 255 | WasmEdge_Result ExternSTLSetErase(void *, const WasmEdge_CallingFrameContext *, |
| 256 | const WasmEdge_Value *In, WasmEdge_Value *) { |
| 257 | // Function type: {externref, i32} -> {} |
| 258 | void *Ptr = WasmEdge_ValueGetExternRef(In[0]); |
| 259 | auto &Set = *reinterpret_cast<std::set<uint32_t> *>(Ptr); |
| 260 | Set.erase(static_cast<uint32_t>(WasmEdge_ValueGetI32(In[1]))); |
| 261 | return WasmEdge_Result_Success; |
| 262 | } |
| 263 | |
| 264 | // Host function to push a value into std::vector<uint32_t>. |
| 265 | WasmEdge_Result ExternSTLVectorPush(void *, |
nothing calls this directly
no test coverage detected