MAL.Version |
version_info = MAL.Version( [bFlags AS INTEGER=FALSE] ) AS INTEGER
Retreives the MaxMAL Library Version as a 32 bit INTEGER or the option flags. The version number is encooded as
Bit 0..7 The QFE Number Bit 8..15 Build Number Bit 16..23 Minor Version Bit 24..31 Major Version
Option Flags
Bit 0 0 = Single Precision Floating Point 1 = Double Precision Floating Point
Example:
' Needed for BYTE and WORD functions $LIBRARY "MyBASIC2_ExtLib"
DIM v AS INTEGER
DIM major AS INTEGER DIM minor AS INTEGER DIM build AS INTEGER DIM qfe AS INTEGER
v = MAL.Version()
major = BYTE.HI( WORD.HI( v ) ) minor = BYTE.LO( WORD.HI( v ) ) build = BYTE.HI( WORD.LO( v ) ) qfe = BYTE.LO( WORD.LO( v ) )
PRINT "Library Version: ";FORMAT( "%d, %d, %d, %d", major, minor, build, qfe ),
|