C.int16_t(value)
Creates a new C Value of type int16_t
. This function is a simplified wrapper around the Value constructor.
Return value
This function returns a ValueExample
local c = require 'c'
-- Defines a C Value of type "int16_t", initialized with the value -32767
local val = c.int16_t(-32767)
-- Prints the C Value
print(val)