z80:Directives:INCSCRIPT

From Learn @ Cemetech
Jump to navigationJump to search

Loads a script file (or series of script files).

Script files can be written in any .NET-compatible language, such as C# or Visual Basic. Script files should contain at least one public class containing public static (Shared in Visual Basic) methods. The following argument and return value types are valid:

Arguments and Return String, Double, Float, Int32, UInt32, Int16, UInt16, Byte, SByte. Bool.
Arguments Only Brass3.Compiler, Brass3.Label.
Return Only void (Sub in Visual Basic).

Brass itself only understands double-precision floats and strings, so data types are converted before your function is called and converted again when returned. The Brass3.Compiler argument is a special case. If you specify it, do not pass a value for it from your assembly source file. It will be populated with the instance of the compiler object building the current file so that your script file can control the compiler directly if need be.

Syntax

   .incscript "source" [, "source" [, ...]]


Allowed inputs

Uses

See Also

scriptreference