-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Includes are added even if they are guarded by #ifdef-s #5
Comments
Mmh, not sure that's easily fixable. Where is SOMEDEF defined here? In header_a? I'd like to make sure I fully understand the context :) |
Yes this define is from other header. It's not that big of a problem right now. I don't see easy fix for that and I'm not sure if it's worth fixing. I've added issue to see what's your stance on this 😃 |
Hi! Just a thought here, but it would take some refactoring: You could run an external c pre-processor on the file. In gcc, you use -E, and in msdev, it's /P (I think - I haven't done this in a while). There may be a decent c preprocessor that you could build in. As an aside: How do you set your include paths? I've been trying to figure this out for 2 days and I can't get includes to work - Thanks! Love this thing! |
You need to use |
When parsing includes in hlsl file all of them are added even if they are guarded by failed
#ifdef
Right now both
header_a
andheader_b
are included and this leads to compilation errors.The text was updated successfully, but these errors were encountered: