File/devutils/ddtpreproc.php

Description

ddtpreproc

Since Javascript does not seem to have variables similar to __FILE__ and __LINE__ from php, this script pre-processes .js files to patch in file and line numbers into all _ddt() calls.

After making an editing pass through the .js files, this script should be called to update the line numbers.

  • todo: handle multi-line comments.
  • todo: handle nested ");"
  • todo: distinguish between _ddt( $file, $line, $msg ) and _ddt( "file", "100", "message" );
  • copyright: DTLink, LLC 2005
  • author: Yermo Lamers

Documentation generated on Sat, 31 Dec 2005 14:56:52 -0500 by phpDocumentor 1.3.0RC3