Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/sqlite/blob/master/ext/wasm/example_extra_init.c # sqlite [Ported from github.com/sqlite/sqlite] Fix bugs in and improve the interface to the ".check" command of the CLI. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `sqlite / ext / wasm / example_extra_init.c` 23 lines ยท 708 bytes Raw Blame History 1 /* 2 ** If the canonical build process finds the file 3 ** sqlite3_wasm_extra_init.c in the main wasm build directory, it 4 ** arranges to include that file in the build of sqlite3.wasm and 5 ** defines SQLITE_EXTRA_INIT=sqlite3_wasm_extra_init. 6 ** 7 ** The C file must define the function sqlite3_wasm_extra_init() with 8 ** this signature: 9 ** 10 ** int sqlite3_wasm_extra_init(const char *) 11 ** 12 ** and the sqlite3 library will call it with an argument of NULL one 13 ** time during sqlite3_initialize(). If it returns non-0, 14 ** initialization of the library will fail. 15 */ 16 17 #include "sqlite3.h" 18 #include 19 20 int sqlite3_wasm_extra_init(const char *z){ 21 fprintf(stderr,"%s: %s()\n", __FILE__, __func__); 22 return 0; 23 }