source: git/factory/libfac/factor/interrupt.h @ 16055bd

spielwiese
Last change on this file since 16055bd was 16055bd, checked in by Martin Lee <martinlee84@…>, 12 years ago
chg: move libfac into factory
  • 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.