Add a null address predicate

This commit is contained in:
Joshua Suskalo 2021-09-17 10:48:35 -05:00
parent ba8c67e8d4
commit a22e53002f

View file

@ -87,6 +87,11 @@
[addressable]
(.address ^Addressable addressable))
(defn null?
"Checks if a memory address is null."
[addr]
(.equals (MemoryAddress/NULL) addr))
(defn slice-global
"Gets a slice of the global address space.