Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.