Add -n / --no-entry-point flag to nwn_script_comp#152
Open
cgtudor wants to merge 1 commit intoniv:masterfrom
Open
Add -n / --no-entry-point flag to nwn_script_comp#152cgtudor wants to merge 1 commit intoniv:masterfrom
-n / --no-entry-point flag to nwn_script_comp#152cgtudor wants to merge 1 commit intoniv:masterfrom
Conversation
This flag allows the compilation of a file (or files) without requiring an entry point (void main or StartingConditional). Useful for validating files, especially for compatibility with the vscode language server.
This was referenced Feb 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This flag allows the compilation of a file (or files) without requiring an entry point (
void mainorStartingConditional). Useful for validating files, the main purpose for its creation is compatibility with the vscode language server which needs to "compile" include files to validate syntax errors even if they don't produce compiled code.Testing
Manual testing with the following types of
.nssscripts:void main()StartingConditionalvoid main()orStartingConditionalChangelog
Added
-n/--no-entry-pointflag tonwn_script_compwhich allows the compilation of a file (or files) without requiring an entry point. Useful for validating files.Licence