/gist:d09c7f76d9547dcaf304
Last active Aug 29, 2015
cef_test_alloc.c
| /* This Source Code Form is subject to the terms of the Mozilla Public | |
| * License, v. 2.0. If a copy of the MPL was not distributed with this | |
| * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
| #ifdef __GNUC__ | |
| #define WEAK __attribute__((weak)) | |
| #elif defined(__clang__) | |
| #define WEAK __attribute__((weak_import)) | |
| #endif | |
| WEAK extern void *cef_string_list_alloc(void); | |
| WEAK extern void cef_string_list_free(void *); | |
| int | |
| main(int argc, char *argv[]) | |
| { | |
| void *l; | |
| l = cef_string_list_alloc(); | |
| cef_string_list_free(l); | |
| return 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment