https://github.com/molingyu/macrocc
JavaScript Conditional Compilation Macro.
https://github.com/molingyu/macrocc
conditional-compilation es6 macro
Last synced: 12 months ago
JSON representation
JavaScript Conditional Compilation Macro.
- Host: GitHub
- URL: https://github.com/molingyu/macrocc
- Owner: molingyu
- License: mit
- Created: 2017-04-26T07:00:27.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-06T13:14:56.000Z (over 8 years ago)
- Last Synced: 2025-02-05T15:03:06.259Z (about 1 year ago)
- Topics: conditional-compilation, es6, macro
- Language: JavaScript
- Size: 76.2 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MacroCC
[](https://travis-ci.org/molingyu/macroCC)
[](https://coveralls.io/github/molingyu/macroCC?branch=master)
[](https://badge.fury.io/js/macro-cc)
[](https://gitter.im/macro-cc/lobby)
[](https://www.versioneye.com/user/projects/594880870fb24f0032ea1b44)
[](https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fmolingyu%2FmacroCC?ref=badge_large)
A useful javascript Conditional Compilation macro.
# Example
```javascript
//#define a = 233
var a = /*# a */ / 2
//#if a > 100
console.log(100)
//#else
console.log(0)
//#end
console.log('hello macroCC!')
```
cc:
```javascript
var a = 233 / 2
console.log(100)
console.log('hello macroCC!')
```
# License
[MIT](/LICENSE)