source: git/libfac/factor/interrupt.h @ 18500b

jengelh-datetimespielwiese
Last change on this file since 18500b was 18500b, checked in by Martin Lee <martinlee84@…>, 11 years ago
chg: moved libfac back
  • Property mode set to 100644
File size: 449 bytes
Line 
1///////////////////////////////////////////////////////////////////////////////
2
3#ifndef INTERRUPT_H
4#define INTERRUPT_H
5// FACTORY - Includes
6#include <factory.h>
7// Factor - Includes
8#include "tmpl_inst.h"
9
10/*BEGINPUBLIC*/
11// Set this to a nonzero value to interrupt the computation
12extern int libfac_interruptflag;
13/*ENDPUBLIC*/
14
15inline int
16interrupt_handle( )
17{
18  if ( libfac_interruptflag ){ return 1; }
19  return 0;
20}
21
22#endif /* INTERRUPT_H */
Note: See TracBrowser for help on using the repository browser.