github.com/primecitizens/pcz/std@v0.2.1/runtime/sym_wasm.go (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright 2023 The Prime Citizens
     3  //
     4  // Copyright 2023 The Go Authors. All rights reserved.
     5  // Use of this source code is governed by a BSD-style
     6  // license that can be found in the LICENSE file.
     7  
     8  //go:build pcz && wasm
     9  
    10  package runtime
    11  
    12  import (
    13  	"github.com/primecitizens/pcz/std/core/assert"
    14  )
    15  
    16  func wasmDiv()
    17  func wasmTruncS()
    18  func wasmTruncU()
    19  
    20  func sigpanic() {
    21  	assert.Throw("invalid", "memory", "address", "or", "nil", "pointer", "dereference")
    22  }