- 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
#define
directive (thanks to @zohl) - Add
-v
and--version
to show the version in the CLI
- Add
-c
and--config
to specify a configuration file in the CLI (thanks to @zohl) - Add
-h
and--help
to show the usage in the CLI (thanks to @zohl)
- Add
__LINE__
and__FILE__
- Rename
options.endLine
tooptions.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
#error
directive - Clean unit tests
- Make C-Preprocessor a bit faster for parsing lines
- Add
options.constants
for adding predefined constants - Add
options.macros
for 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.includeSpaces
to0
by default - Fix CLI command
- Complete rewriting of Compile-Js-like-C
- Rename Compile-Js-like-C to C-Preprocessor
- Add
#if
command - Add
#pragma once
command - 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
examples
folder
- Update README.md and add usage
- Initial release