Skip to content

package_get

Tom van Dijck edited this page Jun 4, 2015 · 3 revisions

Gets a previously imported package.

function package.get(name)

Parameters

The name of a package to get.

Return value

nil if the package could not be found, otherwise a pointer to a package.

Example

local p = package.get('blz_concurrent')
if not p then
   print('blz_concurrent was not imported')
end

Availability

Premake 5.0.0 or later.