Skip to content

Instantly share code, notes, and snippets.

@zmike
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zmike/d09c7f76d9547dcaf304 to your computer and use it in GitHub Desktop.
Save zmike/d09c7f76d9547dcaf304 to your computer and use it in GitHub Desktop.
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