Skip to content
Newer
Older
100644 35 lines (27 sloc) 765 Bytes
37dc489 Add real Configuration infrastructure
Evan Phoenix authored Apr 29, 2009
1 #ifndef RBX_CONFIGURATION_HPP
2 #define RBX_CONFIGURATION_HPP
3
4 #include "util/configuration.hpp"
d9335a3 Enable configuring with 1.9 support on by default.
Brian Ford authored Oct 4, 2010
5 #include "vm/config.h"
37dc489 Add real Configuration infrastructure
Evan Phoenix authored Apr 30, 2009
6
7 namespace rubinius {
8 class Configuration : public config::Configuration {
9 public:
fa7724a @evanphx Switch the version config to a radio button
evanphx authored Jul 1, 2011
10
442d7db Configure which language versions are enabled.
Brian Ford authored May 28, 2011
11 #ifdef RBX_ENABLED_18
35a49f3 @evanphx Introduce State class as STATE
evanphx authored Nov 1, 2011
12 #define LANGUAGE_18_ENABLED(state) ((state)->vm()->shared.config.version == 18)
442d7db Configure which language versions are enabled.
Brian Ford authored May 29, 2011
13 #else
14 #define LANGUAGE_18_ENABLED(state) (false)
15 #endif
16
17 #ifdef RBX_ENABLED_19
35a49f3 @evanphx Introduce State class as STATE
evanphx authored Nov 1, 2011
18 #define LANGUAGE_19_ENABLED(state) ((state)->vm()->shared.config.version == 19)
442d7db Configure which language versions are enabled.
Brian Ford authored May 29, 2011
19 #else
20 #define LANGUAGE_19_ENABLED(state) (false)
21 #endif
22
23 #ifdef RBX_ENABLED_20
35a49f3 @evanphx Introduce State class as STATE
evanphx authored Nov 1, 2011
24 #define LANGUAGE_20_ENABLED(state) ((state)->vm()->shared.config.version == 20)
442d7db Configure which language versions are enabled.
Brian Ford authored May 29, 2011
25 #else
26 #define LANGUAGE_20_ENABLED(state) (false)
27 #endif
e69322d Added -X19 for selecting supported language version.
Brian Ford authored Oct 4, 2010
28
3fd5894 @evanphx Convert configuration variables to a Ruby data dsl
evanphx authored Aug 24, 2011
29 #include "vm/gen/config_variables.h"
8133e09 Tooling can be enabled anytime, anywhere.
Evan Phoenix authored Apr 4, 2011
30 void finalize() { }
37dc489 Add real Configuration infrastructure
Evan Phoenix authored Apr 30, 2009
31 };
32 }
33
34 #endif
Something went wrong with that request. Please try again.