C.ushort(value)



Creates a new C Value of type unsigned short. This function is a simplified wrapper around the Value constructor.

Return value

This function returns a Value

Example

local c = require 'c' -- Defines a C Value of type "unsigned short", initialized with the value 320 local val = c.ushort(320) -- Prints the C Value print(val)