Add a null address predicate
This commit is contained in:
parent
ba8c67e8d4
commit
a22e53002f
1 changed files with 5 additions and 0 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue