diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-11-25 21:19:53 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-11-25 21:19:53 -0800 |
commit | 06b58cbbe006f77471ca08e88e08c019641750be (patch) | |
tree | 3c4cf7a3fb91265e54c0eb3b3e2cf2802a96ee9a /src/utility.js | |
parent | ebe8a3a0c9662271ccdde5c05bd59a5e98964574 (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.js | 4 |
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); } |