nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib/c: add doc on `NATIVE` and `native_array`
[nit.git]
/
lib
/
c.nit
diff --git
a/lib/c.nit
b/lib/c.nit
index
6c50cf8
..
3732085
100644
(file)
--- a/
lib/c.nit
+++ b/
lib/c.nit
@@
-23,7
+23,10
@@
intrude import standard::collection::array
abstract class CArray[E]
super AbstractArrayRead[E]
+ # The corresponding C type
type NATIVE: NativeCArray
+
+ # Pointer to the real C array
var native_array: NATIVE is noinit
private init(length: Int) do self._length = length