Closed ochafik closed 10 years ago
include() exposed in github; will look at supporting pragma once.
Is there an implication from your code that a #pragma once can appear in something which is not a FileLexerSource? Surely it can only appear at top level?
Oh, I see it. I shot myself with VirtualFile didn't I. :-(
Implemented in github, will make 1.4.1. Enable Feature.PRAGMA_ONCE. Please let me know if this satisfies?
Lots of headers on Windows use
#pragma once
instead ofifndef
guards (or at least, used to use it when I last checked), so this feature is quite important.See MSDN documentation
JNAerator uses a hack that involves overriding Preprocessor.include (using a forked jcpp where this is possible), but it would be great if jcpp had native support for this (err... maybe it does already, thanks for letting me know in that case :-))