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 #ifndef INCLUDE_STATIC_FFI_H_ | 5 #ifndef INCLUDE_STATIC_FFI_H_ |
6 #define INCLUDE_STATIC_FFI_H_ | 6 #define INCLUDE_STATIC_FFI_H_ |
7 | 7 |
8 #include "include/fletch_api.h" | 8 #include "include/fletch_api.h" |
9 | 9 |
10 /** | 10 /** |
11 * The static FFI interface of fletch can be used in two ways. The easiest way | 11 * The static FFI interface of fletch can be used in two ways. The easiest way |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 #define FLETCH_EXPORT_STATIC(fun) \ | 67 #define FLETCH_EXPORT_STATIC(fun) \ |
68 FLETCH_EXPORT_FFI FletchStaticFFISymbol fletch_ffi_entry_ ## fun = { \ | 68 FLETCH_EXPORT_FFI FletchStaticFFISymbol fletch_ffi_entry_ ## fun = { \ |
69 FLETCH_FUNCTION_NAME(fun), \ | 69 FLETCH_FUNCTION_NAME(fun), \ |
70 &fun }; \ | 70 &fun }; \ |
71 | 71 |
72 #define FLETCH_EXPORT_STATIC_RENAME(name, fun) \ | 72 #define FLETCH_EXPORT_STATIC_RENAME(name, fun) \ |
73 FLETCH_EXPORT_FFI FletchStaticFFISymbol fletch_ffi_entry_ ## name = { \ | 73 FLETCH_EXPORT_FFI FletchStaticFFISymbol fletch_ffi_entry_ ## name = { \ |
74 #name, &fun }; \ | 74 #name, &fun }; \ |
75 | 75 |
76 #endif // INCLUDE_STATIC_FFI_H_ | 76 #endif // INCLUDE_STATIC_FFI_H_ |
OLD | NEW |