c.int32_t(value)function
Creates a new C Value of type int32_t. This function is a simplified wrapper around the Value constructor.
Parameters
value
A Lua value used to initialize the C Value (see Lua to C conversion rules)
Return value
This function returns a ValueExample
local c = require 'c'
-- Defines a C Value of type "int32_t", initialized with the value 2147483647
local val = c.int32_t(2147483647)
-- Prints the C Value
print(val)