aboutsummaryrefslogtreecommitdiff
path: root/src/utility.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-11-25 21:19:53 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-11-25 21:19:53 -0800
commit06b58cbbe006f77471ca08e88e08c019641750be (patch)
tree3c4cf7a3fb91265e54c0eb3b3e2cf2802a96ee9a /src/utility.js
parentebe8a3a0c9662271ccdde5c05bd59a5e98964574 (diff)
fix for passing structs by value, and warning for unfixable case of passing structs by value between C and C++ calling conventions
Diffstat (limited to 'src/utility.js')
-rw-r--r--src/utility.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utility.js b/src/utility.js
index f0439ea7..737d515a 100644
--- a/src/utility.js
+++ b/src/utility.js
@@ -64,6 +64,10 @@ function assertTrue(a, msg) {
assert = assertTrue;
function warn(a, msg) {
+ if (!msg) {
+ msg = a;
+ a = false;
+ }
if (!a) {
dprint('Warning: ' + msg);
}