Project

General

Profile

Up

syspackSupportedVersion

Return supported functions that are under differents licenses. The unsupported functions will always return 'nil'.

These supports are defined at the compilation and can not be changed after.

Prototype :

fun [] [[S I] r1]

Return : [[S I] r1] a list of tuple. For each tuple : the name of the license, supported (1) or unsupported (0).

See also

Example

fun spSupported (item)=
	_fooS sprintf "license %s : %d" item;;	// sprintf is defined in syspack too
	
fun main ()=
	_showconsole;
	forList @spSupported syspackSupportedVersion;	// forList is defined in syspack too : a for-like from a list
	0;;

The code above will display in the console :

  • all functions are supported :

    license PHP : 1
    license GPL2 : 1
    license GPL3 : 1

  • GPL3 functions are not supported :

    license PHP : 1
    license GPL2 : 1
    license GPL3 : 0