Skip to content
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.

include_once does not work correctely nested in ifdef/ifndef #16

Open
simonseyock opened this issue Oct 8, 2014 · 1 comment
Open

Comments

@simonseyock
Copy link

Imagine the following file:

// #ifndef FLAG
// #include_once "same/file.js"
// #endif

// #ifndef OTHERFLAG
// #include_once "same/file.js"
// #endif

processed with {FLAG:true}

The file "same/file.js" isn't in the result. It gets written at the place where the first include_once occurs but gets removed because of the ifndef. The second time it doesn't get included because it already got included.

@dcodeIO
Copy link
Owner

dcodeIO commented Oct 8, 2014

Deprecation notice: Preprocessor.js has been deprecated in favor of MetaScript, a much more JavaScripty way for build time meta programming using JavaScript itself as the meta language. Check out the migration guide to get a quick impression of its merits.

STAH added a commit to nashdot/Preprocessor.js that referenced this issue Feb 3, 2016
STAH added a commit to nashdot/Preprocessor.js that referenced this issue Feb 3, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants