Skip to content

Commit

Permalink
Packfile.Decompile: use $load directive
Browse files Browse the repository at this point in the history
It's clearer than writing my own init function, and matches the
style I'm using for tests.
  • Loading branch information
Benabik committed Jul 24, 2012
1 parent 24ba6e9 commit c3d555e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/PACT/Packfile/Decompile.winxed
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@
// Get all the argument type constants for PCC
$include_const 'call_bits.pasm';

// Load PACT.Packfile
$include 'PACT/Packfile.winxed';

function init[anon,load,init]() {
load_bytecode('pact/packfile.pbc');
}
$load 'PACT/Packfile.pbc';

// Utility function to parse a argument
function parse_arg[anon](var packfile, int type, int arg, int pc) {
Expand Down

0 comments on commit c3d555e

Please sign in to comment.