Skip to content

Commit 4cdddfe

Browse files
committed
docs/gc: Mark mem_alloc()/mem_free() as uPy-specific.
1 parent b50659e commit 4cdddfe

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

docs/library/gc.rst

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@ Functions
2424

2525
Return the number of bytes of heap RAM that are allocated.
2626

27+
.. admonition:: Difference to CPython
28+
:class: attention
29+
30+
This function is MicroPython extension.
31+
2732
.. function:: mem_free()
2833

29-
Return the number of bytes of available heap RAM.
34+
Return the number of bytes of available heap RAM, or -1 if this amount
35+
is not known.
36+
37+
.. admonition:: Difference to CPython
38+
:class: attention
39+
40+
This function is MicroPython extension.

0 commit comments

Comments
 (0)