aboutsummaryrefslogtreecommitdiff
path: root/unix/as.linux64/zsvjmp_demo.c
blob: 3dd2d90e51eba0cb657726fc4bb7d63b3412ec04 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* Compile with gcc -S to get demo assembler code.
 */
#include <setjmp.h>

#define import_spp
#include <iraf.h>

int zsvjmp_( XPOINTER *buf, XINT *status )
{
	*status = 0;
	((XINT **)buf)[0] = status;
	return sigsetjmp ((void *)((XINT **)buf+1),0);
}