aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-11-12 08:19:10 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-11-12 08:19:10 -0800
commit93b48cd720995297f9ec27a8af0d5cbb065f4a9a (patch)
tree3b7b1aa671264e8d09c6430a4a8b390509acca7c /src
parent5137ee95da159d327dc2f086894cd7feb7ca1b4b (diff)
demangle new and delete
Diffstat (limited to 'src')
-rw-r--r--src/preamble.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/preamble.js b/src/preamble.js
index 3e76e503..deabd29a 100644
--- a/src/preamble.js
+++ b/src/preamble.js
@@ -646,6 +646,10 @@ function demangle(func) {
if (func[0] !== '_') return func;
if (func[1] !== '_') return func; // C function
if (func[2] !== 'Z') return func;
+ switch (func[3]) {
+ case 'n': return 'operator new()';
+ case 'd': return 'operator delete()';
+ }
var i = 3;
// params, etc.
var basicTypes = {