Returns the underlying `*storeData` that this store references in Go, used for inserting functions or storing panic data.
(store Storelike)
| 150 | // Returns the underlying `*storeData` that this store references in Go, used |
| 151 | // for inserting functions or storing panic data. |
| 152 | func getDataInStore(store Storelike) *storeData { |
| 153 | data := uintptr(C.wasmtime_context_get_data(store.Context())) |
| 154 | gStoreLock.Lock() |
| 155 | defer gStoreLock.Unlock() |
| 156 | return gStoreMap[int(data)] |
| 157 | } |
| 158 | |
| 159 | var ( |
| 160 | gEngineFuncLock sync.Mutex |
no test coverage detected
searching dependent graphs…