| OLD | NEW |
| 1 // Copyright (c) 2014, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dartino project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 #include "src/shared/flags.h" | 5 #include "src/shared/flags.h" |
| 6 | 6 |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 #include <stdio.h> | 8 #include <stdio.h> |
| 9 | 9 |
| 10 #include "src/shared/utils.h" | 10 #include "src/shared/utils.h" |
| 11 #include "src/shared/platform.h" | 11 #include "src/shared/platform.h" |
| 12 | 12 |
| 13 namespace fletch { | 13 namespace dartino { |
| 14 | 14 |
| 15 #ifdef DEBUG | 15 #ifdef DEBUG |
| 16 #define MATERIALIZE_DEBUG_FLAG(type, prefix, name, value, doc) \ | 16 #define MATERIALIZE_DEBUG_FLAG(type, prefix, name, value, doc) \ |
| 17 type Flags::name = value; | 17 type Flags::name = value; |
| 18 #else | 18 #else |
| 19 #define MATERIALIZE_DEBUG_FLAG(type, prefix, name, value, doc) | 19 #define MATERIALIZE_DEBUG_FLAG(type, prefix, name, value, doc) |
| 20 #endif | 20 #endif |
| 21 | 21 |
| 22 #define MATERIALIZE_RELEASE_FLAG(type, prefix, name, value, doc) \ | 22 #define MATERIALIZE_RELEASE_FLAG(type, prefix, name, value, doc) \ |
| 23 type Flags::name = value; | 23 type Flags::name = value; |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 } | 166 } |
| 167 } | 167 } |
| 168 *argc = count; | 168 *argc = count; |
| 169 | 169 |
| 170 if (Flags::print_flags) { | 170 if (Flags::print_flags) { |
| 171 PrintFlags(); | 171 PrintFlags(); |
| 172 // Process is terminated and will not return. | 172 // Process is terminated and will not return. |
| 173 } | 173 } |
| 174 } | 174 } |
| 175 | 175 |
| 176 } // namespace fletch | 176 } // namespace dartino |
| OLD | NEW |