Difference between revisions of "Z80:Directives:INCSCRIPT"
(Initial automated import) |
KermMartian (talk | contribs) |
||
Line 5: | Line 5: | ||
The following argument and return value types are valid: | The following argument and return value types are valid: | ||
− | {| | + | {| class="wikitable" |
− | + | ! 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). | |
|} | |} | ||
Line 17: | Line 17: | ||
== Syntax == | == Syntax == | ||
− | |||
− | |||
− | |||
.incscript "source" [, "source" [, ...]] | .incscript "source" [, "source" [, ...]] | ||
Line 25: | Line 22: | ||
=== Allowed inputs === | === Allowed inputs === | ||
− | |||
− | |||
== Uses == | == Uses == | ||
− | |||
− | |||
== See Also == | == See Also == |
Latest revision as of 08:23, 5 February 2016
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.
Contents
Syntax
.incscript "source" [, "source" [, ...]]
Allowed inputs
Uses
See Also