aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-04-20 09:43:11 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-04-20 09:43:11 -0700
commit96f46bba62e44eefa6ddf4ec031ed8725e95fb12 (patch)
tree0c0f8f590d8fc7309446824cc8cb53b7ed9d5c8a /src
parentf8f95c6626bbd21f4f7c6f65ad5d23865964a091 (diff)
VERBOSE option
Diffstat (limited to 'src')
-rw-r--r--src/parseTools.js5
-rw-r--r--src/settings.js1
2 files changed, 3 insertions, 3 deletions
diff --git a/src/parseTools.js b/src/parseTools.js
index 1a04d744..9e295284 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -1318,9 +1318,8 @@ function finalizeLLVMFunctionCall(item, noIndexizeFunctions) {
var oldCount = countNormalArgs(oldType);
var newCount = countNormalArgs(newType);
if (oldCount != newCount && oldCount && newCount) {
- if (!ASSERTIONS) {
- warnOnce('Casting a function pointer type to another with a different number of arguments. See more info in the compiler source');
- } else {
+ warnOnce('Casting a function pointer type to another with a different number of arguments. See more info in the compiler source');
+ if (VERBOSE) {
warnOnce('Casting a function pointer type to another with a different number of arguments: ' + oldType + ' vs. ' + newType + ', on ' + item.params[0].ident);
}
// This may be dangerous as clang generates different code for C and C++ calling conventions. The only problem
diff --git a/src/settings.js b/src/settings.js
index 7df86c90..24c52d59 100644
--- a/src/settings.js
+++ b/src/settings.js
@@ -26,6 +26,7 @@ var ASSERTIONS = 1; // Whether we should add runtime assertions, for example to
// exceed it's size, whether all allocations (stack and static) are
// of positive size, etc., whether we should throw if we encounter a bad __label__, i.e.,
// if code flow runs into a fault
+var VERBOSE = 0; // When set to 1, will generate more verbose output during compilation.
var INVOKE_RUN = 1; // Whether we will call run(). Disable if you embed the generated
// code in your own, and will call run() yourself at the right time