You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
harrymkt
changed the title
Feature request: #define
Feature request: #pragma define
Oct 3, 2024
Hello.
Please add the possibility to declare define, so we can define, for example, to avoid multiple duplicate includes.
//include.nvgt
Then in the main script, we do like this:
//main.nvgt
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
The text was updated successfully, but these errors were encountered: