OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 #if defined(FLETCH_TARGET_OS_WIN) | 5 #if defined(FLETCH_TARGET_OS_WIN) |
6 | 6 |
7 #ifdef FLETCH_ENABLE_FFI | 7 #ifdef FLETCH_ENABLE_FFI |
8 | 8 |
9 #include "src/vm/ffi.h" | 9 #include "src/vm/ffi.h" |
10 | 10 |
11 #include <Windows.h> | 11 #include <Windows.h> |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 END_NATIVE() | 162 END_NATIVE() |
163 | 163 |
164 BEGIN_NATIVE(ForeignErrno) { return Smi::FromWord(GetLastError()); } | 164 BEGIN_NATIVE(ForeignErrno) { return Smi::FromWord(GetLastError()); } |
165 END_NATIVE() | 165 END_NATIVE() |
166 | 166 |
167 } // namespace fletch | 167 } // namespace fletch |
168 | 168 |
169 #endif // FLETCH_ENABLE_FFI | 169 #endif // FLETCH_ENABLE_FFI |
170 | 170 |
171 #endif // defined(FLETCH_TARGET_OS_WIN) | 171 #endif // defined(FLETCH_TARGET_OS_WIN) |
OLD | NEW |