Source file src/runtime/export_stackswitch_test.go

     1  // Copyright 2026 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build (wasm && wasm.stackswitch) || (wasm32 && wasm32.stackswitch)
     6  
     7  package runtime
     8  
     9  var WasmContTableSize = wasmContTableSize
    10  var WasmContTableGrow = wasmContTableGrow
    11  
    12  func WasmContSlot() int32 {
    13  	return getg().wasmCont.index
    14  }
    15  

View as plain text