Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add PrettyPrint capability, debug settings
- Initial version of PrettyPrint capability added to genx core - Add flag to Writer constructor to turn on PrettyPrint - Add basic tests to validate PrettyPrint works and formats correctly - Add "clean" and "cmake / cmake debug" scripts to package.json
- Loading branch information
Showing
8 changed files
with
168 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
var EventEmitter = require('events').EventEmitter, | ||
genx = require('../build/Release/genx'); | ||
|
||
// Check if we're in debug mode | ||
var genxDir = (typeof v8debug !== 'undefined') ? '../build/Debug/genx' : '../build/Release/genx', | ||
EventEmitter = require('events').EventEmitter, | ||
genx = require(genxDir); | ||
genx.Writer.prototype.__proto__ = EventEmitter.prototype; | ||
|
||
module.exports = genx; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters