Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mb_debug_count_stack_frames - undeclared 'l' #86

Open
invpe opened this issue Oct 19, 2023 · 1 comment
Open

mb_debug_count_stack_frames - undeclared 'l' #86

invpe opened this issue Oct 19, 2023 · 1 comment

Comments

@invpe
Copy link

invpe commented Oct 19, 2023

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 */
}
@blazer2k1
Copy link

Afaik and usually s and l go in pairs which seem that function is missing.

struct mb_interpreter_t* s, void** l

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants