| OLD | NEW |
| 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Fletch 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 SRC_VM_FLETCH_API_IMPL_H_ | 5 #include "src/vm/ffi.h" |
| 6 #define SRC_VM_FLETCH_API_IMPL_H_ | |
| 7 | 6 |
| 8 #include "include/fletch_api.h" | 7 #include <libgen.h> |
| 9 | 8 |
| 10 namespace fletch { | 9 namespace fletch { |
| 11 | 10 |
| 11 char* ForeignUtils::DirectoryName(char* path) { |
| 12 return dirname(path); |
| 13 } |
| 14 |
| 12 } // namespace fletch | 15 } // namespace fletch |
| 13 | |
| 14 #endif // SRC_VM_FLETCH_API_IMPL_H_ | |
| 15 | |
| OLD | NEW |