Merge: gamnit: optimize the `flat` 2D api using GPU buffers
[nit.git] / lib / core / kernel.nit
index a821006..88dcc8a 100644 (file)
@@ -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; `}