Skip to content

Commit 7d387d6

Browse files
authored
emscripten LLVM backend compatibility
See #356
1 parent 46b3d92 commit 7d387d6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/api.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,9 @@ Module["onRuntimeInitialized"] = function onRuntimeInitialized() {
939939
removeFunction(this.functions[name]);
940940
delete this.functions[name];
941941
}
942-
func_ptr = addFunction(wrapped_func);
942+
// The signature of the wrapped function is :
943+
// void wrapped(sqlite3_context *db, int argc, sqlite3_value **argv)
944+
func_ptr = addFunction(wrapped_func, "viii");
943945
this.functions[name] = func_ptr;
944946
this.handleError(sqlite3_create_function_v2(
945947
this.db,

0 commit comments

Comments
 (0)