2010-06-23 23:03:09 -05:00
|
|
|
#ifndef RUST_H
|
|
|
|
#define RUST_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Include this file after you've defined the ISO C9x stdint
|
|
|
|
* types (size_t, uint8_t, uintptr_t, etc.)
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef __i386__
|
|
|
|
// 'cdecl' ABI only means anything on i386
|
|
|
|
#ifdef __WIN32__
|
2011-08-20 18:31:38 -05:00
|
|
|
#ifndef CDECL
|
2010-06-23 23:03:09 -05:00
|
|
|
#define CDECL __cdecl
|
2011-08-20 18:31:38 -05:00
|
|
|
#endif
|
|
|
|
#ifndef FASTCALL
|
2011-05-31 19:44:54 -05:00
|
|
|
#define FASTCALL __fastcall
|
2011-08-20 18:31:38 -05:00
|
|
|
#endif
|
2010-06-23 23:03:09 -05:00
|
|
|
#else
|
|
|
|
#define CDECL __attribute__((cdecl))
|
2011-05-31 19:44:54 -05:00
|
|
|
#define FASTCALL __attribute__((fastcall))
|
2010-06-23 23:03:09 -05:00
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#define CDECL
|
2011-05-31 19:44:54 -05:00
|
|
|
#define FASTCALL
|
2010-06-23 23:03:09 -05:00
|
|
|
#endif
|
|
|
|
|
2011-06-29 13:24:57 -05:00
|
|
|
/* Controls whether claims are turned into checks */
|
|
|
|
/* Variable name must be kept consistent with trans.rs */
|
|
|
|
extern "C" int check_claims;
|
|
|
|
|
2010-06-23 23:03:09 -05:00
|
|
|
/*
|
|
|
|
* Local Variables:
|
|
|
|
* fill-column: 78;
|
|
|
|
* indent-tabs-mode: nil
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* buffer-file-coding-system: utf-8-unix
|
2011-07-13 15:51:20 -05:00
|
|
|
* compile-command: "make -k -C $RBUILD 2>&1 | sed -e 's/\\/x\\//x:\\//g'";
|
2010-06-23 23:03:09 -05:00
|
|
|
* End:
|
|
|
|
*/
|
|
|
|
|
|
|
|
#endif /* RUST_H */
|