diff options
Diffstat (limited to 'pkg/lang/vm/mem/ptr.go')
| -rw-r--r-- | pkg/lang/vm/mem/ptr.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/lang/vm/mem/ptr.go b/pkg/lang/vm/mem/ptr.go new file mode 100644 index 0000000..5e3bf3d --- /dev/null +++ b/pkg/lang/vm/mem/ptr.go @@ -0,0 +1,10 @@ +package mem + +import "strconv" + +type Ptr uint64 + +func (p Ptr) String() string { + val := strconv.FormatUint(uint64(p), 10) + return "@" + val +} |
