Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / devtools / v8plus / share / swig / 1.3.26 / python / pyapi.swg
CommitLineData
920dae64
AT
1/* -----------------------------------------------------------------------------
2 * SWIG API. Portion that goes into the runtime
3 * ----------------------------------------------------------------------------- */
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
9/* -----------------------------------------------------------------------------
10 * for internal method declarations
11 * ----------------------------------------------------------------------------- */
12
13#ifndef SWIGINTERN
14# define SWIGINTERN static SWIGUNUSED
15#endif
16
17#ifndef SWIGINTERNINLINE
18# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
19#endif
20
21/*
22 Exception handling in wrappers
23*/
24#define SWIG_fail goto fail
25#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
26#define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0)
27#define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1)
28#define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj)
29#define SWIG_null_ref(type) SWIG_Python_NullRef(type)
30
31/*
32 Contract support
33*/
34#define SWIG_contract_assert(expr, msg) \
35 if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
36
37/* -----------------------------------------------------------------------------
38 * Constant declarations
39 * ----------------------------------------------------------------------------- */
40
41/* Constant Types */
42#define SWIG_PY_INT 1
43#define SWIG_PY_FLOAT 2
44#define SWIG_PY_STRING 3
45#define SWIG_PY_POINTER 4
46#define SWIG_PY_BINARY 5
47
48/* Constant information structure */
49typedef struct swig_const_info {
50 int type;
51 char *name;
52 long lvalue;
53 double dvalue;
54 void *pvalue;
55 swig_type_info **ptype;
56} swig_const_info;
57
58
59/* -----------------------------------------------------------------------------
60 * Alloc. memory flags
61 * ----------------------------------------------------------------------------- */
62#define SWIG_OLDOBJ 1
63#define SWIG_NEWOBJ SWIG_OLDOBJ + 1
64#define SWIG_PYSTR SWIG_NEWOBJ + 1
65
66#ifdef __cplusplus
67}
68#endif
69