rust/src/rt/rust.h

42 lines
833 B
C
Raw Normal View History

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__
#ifndef CDECL
2010-06-23 23:03:09 -05:00
#define CDECL __cdecl
#endif
#ifndef FASTCALL
#define FASTCALL __fastcall
#endif
2010-06-23 23:03:09 -05:00
#else
#define CDECL __attribute__((cdecl))
#define FASTCALL __attribute__((fastcall))
2010-06-23 23:03:09 -05:00
#endif
#else
#define CDECL
#define FASTCALL
2010-06-23 23:03:09 -05:00
#endif
/* 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 */