Skip to content

Special functions to jump between functions.

Notifications You must be signed in to change notification settings

tdworg/samp-include-cjump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TDW C-like jumps

This library adds the functional to jump between functions.

Example:

new jmp[JmpBuf];

main() {
	new ret;
	setjmp(jmp, ret);

	if (ret < 10) {
		somefunc(ret);
	}
}

somefunc(ret)
{
	printf("%d", ret);
	longjmp(jmp, ++ret);
}