diff options
author | Morgan Deters <mdeters@gmail.com> | 2011-09-20 14:58:30 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2011-09-20 14:58:30 +0000 |
commit | c241cf3bef737a58162868d51a2c773c5af5abbf (patch) | |
tree | 741fac2402e78a85bdc42e3b47ee23d7c10db9f8 /src/bindings/swig.h | |
parent | f1c1cc7c3de0d4a5f310357a249cef82f73c588c (diff) |
Merge from "swig" branch: language binding for Java is compiling and linking. Enable with --enable-language-bindings=java
Diffstat (limited to 'src/bindings/swig.h')
-rw-r--r-- | src/bindings/swig.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/bindings/swig.h b/src/bindings/swig.h new file mode 100644 index 000000000..7dec263f6 --- /dev/null +++ b/src/bindings/swig.h @@ -0,0 +1,38 @@ +/********************* */ +/*! \file swig.h + ** \verbatim + ** Original author: mdeters + ** Major contributors: none + ** Minor contributors (to current version): none + ** This file is part of the CVC4 prototype. + ** Copyright (c) 2009, 2010, 2011 The Analysis of Computer Systems Group (ACSys) + ** Courant Institute of Mathematical Sciences + ** New York University + ** See the file COPYING in the top-level source directory for licensing + ** information.\endverbatim + ** + ** \brief Common swig checks and definitions + ** + ** Common swig checks and definitions, when generating swig interfaces. + **/ + +#ifndef __CVC4__BINDINGS__SWIG_H +#define __CVC4__BINDINGS__SWIG_H + +#ifndef SWIG +# error This file should only be included when generating swig interfaces. +#endif /* SWIG */ + +#if !defined(SWIG_VERSION) || SWIG_VERSION < 0x020000 +# error CVC4 bindings require swig version 2.0.0 or later, sorry. +#endif /* SWIG_VERSION */ + +%import "cvc4_public.h" +%import "util/tls.h" + +// swig doesn't like the __thread storage class... +#define __thread +// ...or GCC attributes +#define __attribute__(x) + +#endif /* __CVC4__BINDINGS__SWIG_H */ |