From 05680318f03c86660f009c14d98cfad5f856db1c Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 10 Jan 2013 17:14:52 -0800 Subject: auto-export some special functions if they are dependencies of a JS library element --- src/settings.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/settings.js') diff --git a/src/settings.js b/src/settings.js index 11af4692..8ae287f9 100644 --- a/src/settings.js +++ b/src/settings.js @@ -222,6 +222,12 @@ var DEFAULT_LIBRARY_FUNCS_TO_INCLUDE = ['memcpy', 'memset', 'malloc', 'free', '$ // add it here (and in EXPORTED FUNCTIONS with prefix // "_", for closure). +var LIBRARY_DEPS_TO_AUTOEXPORT = ['memcpy']; // This list is also used to determine + // auto-exporting of library dependencies (i.e., functions that + // might be dependencies of JS library functions, that if + // so we must export so that if they are implemented in C + // they will be accessible, in ASM_JS mode). + var IGNORED_FUNCTIONS = []; // Functions that we should not generate, neither a stub nor a complete function. // This is useful if your project code includes a function, and you want to replace // that in the compiled code with your own handwritten JS. (Of course even without -- cgit v1.2.3-18-g5258