it seems the AngelScript havent "include" keywords?
Since AngelScript doesn't load the files itself, it cannot support include directly. However, you easily write a simple preprocessor that scans for #include directives and if found adds a second script section with the included file.
When the preprocessor finds an #include it could easily remove it from the original script by substituting the first two characters for //, making the line a comment. That way AngelScript will still be able to compile the script without problems.
Read the following article for more info: Using #include with AngelScript
Regards,
Andreas
When the preprocessor finds an #include it could easily remove it from the original script by substituting the first two characters for //, making the line a comment. That way AngelScript will still be able to compile the script without problems.
Read the following article for more info: Using #include with AngelScript
Regards,
Andreas
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement