Loading [MathJax]/extensions/tex2jax.js
Iros
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages Concepts
Loading...
Searching...
No Matches
config.h
Go to the documentation of this file.
1#pragma once
2
3#ifdef __x86_64__
4#define DIUS_ARCH x86_64
5#define DIUS_ARCH_X86_64
6#else
7#error "Unsupported dius architecture"
8#endif
9
10#ifdef __linux__
11// Why does linux define linux to 1? Anyway, let's undefine it, since it causes lots of problems.
12#undef linux
13
14#define DIUS_PLATFORM linux
15#define DIUS_PLATFORM_LINUX
16#elif defined(__iros__)
17#define DIUS_PLATFORM iros
18#define DIUS_PLATFORM_IROS
19#else
20#error "Unsupported dius platform"
21#endif
22
23#ifdef DIUS_USE_RUNTIME
24#undef __GLIBC__
25#endif
26
27#define DIUS_ARCH_PATH(path) <dius/arch/DIUS_ARCH/path>
28#define DIUS_PLATFORM_PATH(path) <dius/DIUS_PLATFORM/path>
29#define DIUS_ARCH_PLATFORM_PATH(path) <dius/arch/DIUS_ARCH/DIUS_PLATFORM/path>