You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.
Daniel Wirtz edited this page Aug 22, 2014
·
2 revisions
While MetaScript provides much more than just what a preprocessor offers, migration from Preprocessor.js or a similar tool is pretty much straight forward.
include
Preprocessor (always absolute to base directory)
// #include "path/to/file.js"
MetaScript (relative to the current file's directory)
//? include("path/to/file.js");
ifdef, ifndef, if
Preprocessor
// #ifdef FULLconsole.log("Including extension");// #elseconsole.log("Not including extension");// #endif
MetaScript
//? if (typeof FULL !== 'undefined') {console.log("Including extension");//? } else {console.log("Not including extension");//? }