Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 1.17 KB

README.md

File metadata and controls

35 lines (27 loc) · 1.17 KB

MacroCC

Build Status Coverage Status npm version Join the chat Dependency Status

FOSSA Status

A useful javascript Conditional Compilation macro.

Example

//#define a = 233
var a = /*# a */ / 2
//#if a > 100
console.log(100)
//#else
console.log(0)
//#end
console.log('hello macroCC!')

cc:

var a = 233 / 2
console.log(100)
console.log('hello macroCC!')

License

MIT