Removed regular ints from the virtual machine and closures

This commit is contained in:
obscuren
2014-03-21 18:22:47 +01:00
parent 9a9e252cab
commit 01c1bce9c5
5 changed files with 39 additions and 10 deletions

View File

@ -237,6 +237,10 @@ func (m *Memory) Get(offset, size int64) []byte {
return m.store[offset : offset+size]
}
func (m *Memory) Len() int {
return len(m.store)
}
func (m *Memory) Print() {
fmt.Println("### MEM ###")
if len(m.store) > 0 {