[][src]Function beryllium::version

pub fn version() -> Version

Gets the version of SDL2 being used at runtime.

This might be later than the one you compiled with, but it will be fully SemVer compatible.

let v = beryllium::version();
assert_eq!(v.major, 2);
assert!(v.minor >= 0);
assert!(v.patch >= 9);