| // Copyright 2014 The Flutter Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| #include "link_hook.h" | |
| // A very short-lived native function. | |
| // | |
| // For very short-lived functions, it is fine to call them on the main isolate. | |
| // They will block the Dart execution while running the native function, so | |
| // only do this for native functions which are guaranteed to be short-lived. | |
| FFI_PLUGIN_EXPORT intptr_t difference(intptr_t a, intptr_t b) { return a - b; } |