Skip to content

mb_debug_count_stack_frames - undeclared 'l' #86

@invpe

Description

@invpe

Error when compiling with undefined MB_ENABLE_STACK_TRACE

my_basic.c:14689:14: error: 'l' undeclared (first use in this function)
  mb_unrefvar(l);
/* Get stack frame count of a MY-BASIC environment */
int mb_debug_count_stack_frames(struct mb_interpreter_t* s) {
#ifdef MB_ENABLE_STACK_TRACE
	int result = 0;

	if(!s) {
		goto _exit;
	}

	result = _ls_count(s->stack_frames);

_exit:
	return result;
#else /* MB_ENABLE_STACK_TRACE */
	int result = 0;
	mb_unrefvar(s);
	mb_unrefvar(l);

	return result;
#endif /* MB_ENABLE_STACK_TRACE */
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions