source: git/factory/libfac/factor/interrupt.h @ e3198f

spielwiese
Last change on this file since e3198f was dccceb, checked in by Oleksandr Motsak <motsak@…>, 12 years ago
moved libfac under factory/ CHG: moved libfac/ under factory/ Note: starting to merge libfac into factory (as a private library)
  • Property mode set to 100644
File size: 457 bytes
Line 
1///////////////////////////////////////////////////////////////////////////////
2// $Id$
3
4#ifndef INTERRUPT_H
5#define INTERRUPT_H
6// FACTORY - Includes
7#include <factory.h>
8// Factor - Includes
9#include "tmpl_inst.h"
10
11/*BEGINPUBLIC*/
12// Set this to a nonzero value to interrupt the computation
13extern int libfac_interruptflag;
14/*ENDPUBLIC*/
15
16inline int
17interrupt_handle( )
18{
19  if ( libfac_interruptflag ){ return 1; }
20  return 0;
21}
22
23#endif /* INTERRUPT_H */
Note: See TracBrowser for help on using the repository browser.