Skip to content

Commit

Permalink
disasm: Print multi candidates
Browse files Browse the repository at this point in the history
Oh, it does it wrong, but it at least shows them
  • Loading branch information
Benabik committed Aug 7, 2012
1 parent 1062de4 commit 05dc11a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/disasm.winxed
Expand Up @@ -125,6 +125,18 @@ function show_namespace(var sub_map, var sc_map, var ns, var path = []) {
say("\n"); // Yes, two newlines
show_namespace(sub_map, sc_map, v);
break;

case 'PACT;Packfile;Multi':
// TODO: Fix this!
// uses same label for every canidate, which is _wrong_
for(var sub in v.canidates) {
say('.sub ' + string(sub_map[v.name]));
show_sub(sc_map, sub);
say('.end');
say();
}
break;

default:
die('Object of unexpected type (' + string(typeof(v))
+ ') found in namespace');
Expand Down

0 comments on commit 05dc11a

Please sign in to comment.