Just found that we can remove the getopt depencency by remove the main.java class.
I also modified some test cases of cppncss to make it support -Dpublic=p kind of stuff.
I think you can revert that part because now what I changed is using jcpp to handle -D part, and still using cppncss's preprocessor to handle -M part, some times this way do helps.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
full source code.
Sorry forget to login, this patch is from holywen :)
Thanks for this wonderful tool!
That's a really great idea !
I didn't know about jcpp, is it fairly recent ?
I'll have a try at integrating your patch (and making a new release) when I can manage to find a bit of time.
Thanks !
You can find jcpp here: http://www.anarres.org/projects/jcpp/
I'm using jcpp 1.2.5. And the license is Apache-2.0.
Just found that we can remove the getopt depencency by remove the main.java class.
I also modified some test cases of cppncss to make it support -Dpublic=p kind of stuff.
I think you can revert that part because now what I changed is using jcpp to handle -D part, and still using cppncss's preprocessor to handle -M part, some times this way do helps.