nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge: gamnit: optimize the `flat` 2D api using GPU buffers
[nit.git]
/
lib
/
core
/
kernel.nit
diff --git
a/lib/core/kernel.nit
b/lib/core/kernel.nit
index
a821006
..
88dcc8a
100644
(file)
--- a/
lib/core/kernel.nit
+++ b/
lib/core/kernel.nit
@@
-1056,6
+1056,9
@@
end
# Pointer classes are used to manipulate extern C structures.
extern class Pointer
+ # C `NULL` pointer
+ new nul `{ return NULL; `}
+
# Is the address behind this Object at NULL?
fun address_is_null: Bool `{ return self == NULL; `}