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

Add preprocessor directives support #751

Open
foldax opened this issue Apr 8, 2024 · 0 comments
Open

Add preprocessor directives support #751

foldax opened this issue Apr 8, 2024 · 0 comments

Comments

@foldax
Copy link

foldax commented Apr 8, 2024

I need to add class from my source to script. I get an error CS7021: You cannot declare namespace in script code
So tried to add something like

// in script
#define SCRIPT
// in source file
#if !SCRIPT 

etc
but these directives does not work in scripts

https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/preprocessor-directives

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