blob: e7a3f8febc9766e23290e52197ef129e00ffd27a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package mem
import "errors"
var (
ErrMemOverflow = errors.New("memory overflow, cannot allocate more than 10000 memory cells")
ErrFatalNonFreeCell = errors.New("non-free cell marked as free")
)
type ErrInvalidMemAccess struct {
Ptr Ptr
}
func (e ErrInvalidMemAccess) Error() string {
return "invalid memory access at " + e.Ptr.String()
}
|