Last active
August 29, 2015 14:09
-
-
Save zmike/d09c7f76d9547dcaf304 to your computer and use it in GitHub Desktop.
cef_test_alloc.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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