← Back to team overview

leaningtech-dev team mailing list archive

Re: [Question #679541]: disable uglify on result of .js file

 

Question #679541 on Cheerp changed:
https://answers.launchpad.net/cheerp/+question/679541

Yuri Iozzelli posted a new comment:
What you see is the C++ name mangling (https://en.wikipedia.org/wiki/Name_mangling).
You can try to demangle it with the c++filt tool, but it doesn't work all the time (in your particular example, It did not work for me).

Also, note that cheerp adds a leading underscore to every function, so
the string that you pass to c++filt needs to have one removed.

A quick and dirty way of demangling all C++ functions in a file is the
following:

cat myfile.js | sed 's/__Z/_Z/g' | c++filt

-- 
You received this question notification because your team Leaningtech
Team is an answer contact for Cheerp.