- Fix issue: multiple occurrences of a macro on the same line
- Fix issue: macro with no arguments
- Add
#pragma push_macro(..)command (thanks to @zohl) - Add
#pragma pop_macro(..)command (thanks to @zohl) - Fix issue: comment in
#definedirective (thanks to @zohl) - Add
-vand--versionto show the version in the CLI
- Add
-cand--configto specify a configuration file in the CLI (thanks to @zohl) - Add
-hand--helpto show the usage in the CLI (thanks to @zohl)
- Add
__LINE__and__FILE__ - Rename
options.endLinetooptions.newLine - Make optional the second argument of the CLI
- Tidy a bit the source code
- Fix issue: replace line endings from CRLF to LF for macOS
- Fix issue: directives with a whitespace between # and their name
- Update README.md
- Add
__TIME__and__DATE__constants - Add
#errordirective - Clean unit tests
- Make C-Preprocessor a bit faster for parsing lines
- Add
options.constantsfor adding predefined constants - Add
options.macrosfor adding predefined macros - Fix issue: macros with another macro with several parameters
- Fix issue: multiple calls of success event
- Fix issue: the last line of the file wasn't parsed
- Set
options.includeSpacesto0by default - Fix CLI command
- Complete rewriting of Compile-Js-like-C
- Rename Compile-Js-like-C to C-Preprocessor
- Add
#ifcommand - Add
#pragma oncecommand - Add unit tests (run
npm test)
- Fix end of lines
- Fix macros and constants system
- Clean a bit the code by separating in several files
- Add CLI command
- Add
examplesfolder
- Update README.md and add usage
- Initial release