Skip to content
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

Feature request: #pragma define #103

Open
harrymkt opened this issue Sep 24, 2024 · 0 comments
Open

Feature request: #pragma define #103

harrymkt opened this issue Sep 24, 2024 · 0 comments

Comments

@harrymkt
Copy link
Contributor

harrymkt commented Sep 24, 2024

Hello.
Please add the possibility to declare define, so we can define, for example, to avoid multiple duplicate includes.

//include.nvgt

#pragma define myinclude
//other functions.

Then in the main script, we do like this:

//main.nvgt

#if !myinclude
#include"include.nvgt"
#endif

This will be useful to define for an include script, which can then be verifyed whether the defined include already exists, so this will avoid multiple includes, even if they were included from multiple paths.

Thanks

@harrymkt harrymkt changed the title Feature request: #define Feature request: #pragma define Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant