-
Notifications
You must be signed in to change notification settings - Fork 156
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
How to use C language include "test.nut" similar function #256
Comments
you need a C preprocessor |
You could implement preprocessing in squirrel, too! Only the person feeding a script to the compiler truly knows how to find other referenced scripts. But it might be good if squirrel had a way to set #line and #file for producing debug data. Not that I'm suggesting it, just thinking out loud. |
I though about it a number of time #include is propably not a good idea to be built in in the language. However #line and #file would be very useful for a DSL that spit out squirrel and wants to retain debugging. |
I think the major issue is that the dubug information as is now, assumes 1 source file per SQFunction. |
maybe allow #include only outside any class or function - or generally bracket closure? |
I like it so much
How to use C language include "test.nut" similar function
The text was updated successfully, but these errors were encountered: