OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart 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 file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include <string.h> | 5 #include <string.h> |
6 | 6 |
7 #include "../include/dart_api.h" | 7 #include "../include/dart_api.h" |
8 | 8 |
9 #define EXPORT_SYMBOL __attribute__ ((visibility ("default"))) | 9 #define EXPORT_SYMBOL __attribute__ ((visibility ("default"))) |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 const char* cname; | 31 const char* cname; |
32 Dart_Handle check_error; | 32 Dart_Handle check_error; |
33 | 33 |
34 check_error = Dart_StringToCString(name, &cname); | 34 check_error = Dart_StringToCString(name, &cname); |
35 if (Dart_IsError(check_error)) return NULL; | 35 if (Dart_IsError(check_error)) return NULL; |
36 if (!strcmp("Cat_IfNull", cname) && argc == 2) { | 36 if (!strcmp("Cat_IfNull", cname) && argc == 2) { |
37 return IfNull; | 37 return IfNull; |
38 } | 38 } |
39 return NULL; | 39 return NULL; |
40 } | 40 } |
OLD | NEW |