Skip to content

os.is64bit

starkos edited this page Apr 10, 2021 · 3 revisions

⚠️ We have a new website! Visit now for the most update to date documentation.
       This wiki is no longer being maintained.


Determines if the host is using a 64-bit processor.

os.is64bit()

Parameters

None.

Return Value

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

Availability

Premake 4.4 or later.

Examples

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