summaryrefslogtreecommitdiff
path: root/py/gc.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-10-24 23:12:25 +0100
committerDamien George <damien.p.george@gmail.com>2014-10-24 23:12:25 +0100
commit0b13f3e026c842facf65743450246b15a8c2e064 (patch)
tree4793550a3701f766428d3f42e76086896e10100f /py/gc.h
parent564963a1700bfca8f053f864ad170d4a34a26270 (diff)
py: Improve memory usage debugging; better GC AT dumping.
In unix port, mem_info(1) now prints pretty GC alloc table.
Diffstat (limited to 'py/gc.h')
-rw-r--r--py/gc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/gc.h b/py/gc.h
index fd48d2664..dc276dd2b 100644
--- a/py/gc.h
+++ b/py/gc.h
@@ -40,7 +40,7 @@ void gc_collect_end(void);
void *gc_alloc(mp_uint_t n_bytes, bool has_finaliser);
void gc_free(void *ptr);
-mp_uint_t gc_nbytes(void *ptr);
+mp_uint_t gc_nbytes(const void *ptr);
void *gc_realloc(void *ptr, mp_uint_t n_bytes);
typedef struct _gc_info_t {