Skip to content
mba105 edited this page Sep 24, 2014 · 2 revisions

Home > [Scripting Reference](Scripting Reference) > os.is64bit


os.is64bit

The os.is64bit function determines if the host is using a 64-bit processor.

#!lua
os.is64bit()

Introduced in Premake 4.4.

Return Value

True if the host system has a 64-bit processor, false otherwise.

Examples

#!lua
if os.is64bit() then
   print("This is a 64-bit system")
else
   print("This is NOT a 64-bit system")
end
Clone this wiki locally