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

spielwiese
Last change on this file since c623e3e was c623e3e, checked in by Hans Schoenemann <hannes@…>, 11 years ago
fix: mac osx port: need extern int in a c file (D, not C code part)
  • Property mode set to 100644
File size: 453 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 "C" 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.