diff -r 903128a42604 -r 1d2cca116cce squish.lua --- a/squish.lua Mon Jul 27 04:00:16 2009 +0100 +++ b/squish.lua Mon Jul 27 04:01:10 2009 +0100 @@ -31,8 +31,6 @@ print = print_verbose; -local enable_debug = opts.enable_debug; - local modules, main_files, resources = {}, {}, {}; -- Functions to be called from squishy file -- @@ -164,7 +162,7 @@ end end -if enable_debug then +if opts.debug then f:write(require_resource("squish.debug")); end @@ -226,7 +224,7 @@ f:write("package.preload['", modulename, "'] = (function (...)\n"); f:write(data); f:write("end)\n"); - if enable_debug then + if opts.debug then f:write(string.format("package.preload[%q] = ___adjust_chunk(package.preload[%q], %q);\n\n", modulename, modulename, "@"..path)); end