
// 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;


// Check if we're in debug mode
var genxDir = !!process.env.GENX_DEBUG ? '../build/Debug/genx' : '../build/Release/genx',
    EventEmitter = require('events').EventEmitter,
    genx         = require(genxDir);
genx.Writer.prototype.__proto__ = EventEmitter.prototype;

module.exports = genx;

Change debug mode to be based on environment variable
Change debug mode to be based on environment variable
