Versions

A function's code, and the layout of the structs it works on, change between versions of the SDK that built the module exporting it. A hook can say which versions it holds for:

@version(>= 5.0.0, < 12.0.0)
hook lock(addr m) -> u32 = os_lock_old uses nn::os::MutexType
@version(>= 12.0.0) hook lock(addr m) -> u32 = os_lock uses nn::os::MutexType

Made from docs/platforms/nx/hooks.md at 69237645142c. GPL-3.0-or-later.