ScriptEngineVersion()

Returns information about the ChaiScript engine.

Function Signature

 string ScriptEngine()

string ScriptEngineVersion()

int ScriptEngineMajorVersion()

int ScriptEngineMinorVersion()

string ScriptEngineBuildVersion()

Parameters

Parameter Type Description

None

Return

Type Description

string

int

  • ScriptEngine(): Returns "ChaiScript".

  • ScriptEngineVersion(): Returns the ChaiScript version number.

  • ScriptEngineMajorVersion(): Returns the ChaiScript major version number.

  • ScriptEngineMinorVersion(): Returns the ChaiScript minor version number.

  • ScriptEngineBuildVersion(): Returns SBM version.

Technical Details

SBM ModScript version: 11.3.

Example

Ext.WriteStream( ScriptEngine() );
Ext.WriteStream( ScriptEngineVersion() );
Ext.WriteStream( ScriptEngineMajorVersion() );
Ext.WriteStream( ScriptEngineMinorVersion() );
Ext.WriteStream( ScriptEngineBuildVersion() );

Result:

ChaiScript
6.0.0
6
0
1140000059 

Notes

ScriptEngineMajorVersionCompat() and ScriptEngineMinorVersionCompat() exist to provide backward compatibility for converted AppScripts. For details, refer to SBM AppScript Conversion Functions.

Related Topics

Free Functions