stackctrl: Add "mp_" prefix.

This commit is contained in:
Paul Sokolovsky
2014-07-01 02:13:42 +03:00
parent e95b6b5e07
commit caa7334141
8 changed files with 20 additions and 20 deletions

View File

@@ -214,7 +214,7 @@ int usage(char **argv) {
mp_obj_t mem_info(void) {
printf("mem: total=%d, current=%d, peak=%d\n",
m_get_total_bytes_allocated(), m_get_current_bytes_allocated(), m_get_peak_bytes_allocated());
printf("stack: %u\n", stack_usage());
printf("stack: %u\n", mp_stack_usage());
#if MICROPY_ENABLE_GC
gc_dump_info();
#endif
@@ -265,7 +265,7 @@ void pre_process_options(int argc, char **argv) {
#endif
int main(int argc, char **argv) {
stack_set_limit(32768);
mp_stack_set_limit(32768);
pre_process_options(argc, argv);