Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Packfile.Decompile: use $load directive

It's clearer than writing my own init function, and matches the
style I'm using for tests.
  • Loading branch information...
commit c3d555e960c224900466952bf09e80f7c6686781 1 parent 24ba6e9
Brian Gernhardt authored July 24, 2012

Showing 1 changed file with 2 additions and 4 deletions. Show diff stats Hide diff stats

  1. 6  src/PACT/Packfile/Decompile.winxed
6  src/PACT/Packfile/Decompile.winxed
@@ -5,11 +5,9 @@
5 5
 // Get all the argument type constants for PCC
6 6
 $include_const 'call_bits.pasm';
7 7
 
  8
+// Load PACT.Packfile
8 9
 $include 'PACT/Packfile.winxed';
9  
-
10  
-function init[anon,load,init]() {
11  
-    load_bytecode('pact/packfile.pbc');
12  
-}
  10
+$load    'PACT/Packfile.pbc';
13 11
 
14 12
 // Utility function to parse a argument
15 13
 function parse_arg[anon](var packfile, int type, int arg, int pc) {

0 notes on commit c3d555e

Please sign in to comment.
Something went wrong with that request. Please try again.