mirror of
https://github.com/sqlite/sqlite.git
synced 2025-10-24 09:53:10 +03:00
Improve #if support in, and add #assert to, c-pp. Rename target=... preprocessor symbols to target:... because changes in the semantics for symbols which have an '=' makes some of those #if blocks mutually exclusive (which we won't want in rare cases involving the bundler-friendly builds).
FossilOrigin-Name: 54287487793d48f6dde919446ab7476aea0cc0aba3835c80f060a7b84221881a
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
//#ifnot target=node
|
||||
//#ifnot target:node
|
||||
/*
|
||||
2022-09-18
|
||||
|
||||
@@ -209,9 +209,9 @@ const installOpfsVfs = function callee(options){
|
||||
return promiseResolve_(sqlite3);
|
||||
};
|
||||
const W =
|
||||
//#if target=es6-bundler-friendly
|
||||
//#if target:es6-bundler-friendly
|
||||
new Worker(new URL("sqlite3-opfs-async-proxy.js", import.meta.url));
|
||||
//#elif target=es6-module
|
||||
//#elif target:es6-module
|
||||
new Worker(new URL(options.proxyUri, import.meta.url));
|
||||
//#else
|
||||
new Worker(options.proxyUri);
|
||||
@@ -1457,4 +1457,4 @@ globalThis.sqlite3ApiBootstrap.initializersAsync.push(async (sqlite3)=>{
|
||||
}/*sqlite3ApiBootstrap.initializers.push()*/);
|
||||
//#else
|
||||
/* The OPFS VFS parts are elided from builds targeting node.js. */
|
||||
//#endif target=node
|
||||
//#endif target:node
|
||||
|
||||
Reference in New Issue
Block a user