c module
Core framework Console Desktop
The C FFI module allows for interfacing with C code from Luart
| Property | Description | Access | Type |
|---|---|---|---|
| c.NULL | Get a NULL C value | readonly |
| Functions | Description | Return value |
|---|---|---|
| c.bool() | nil | |
| c.char() | Create a C Value of type `char` | |
| c.double() | Create a C Value of type `double` | |
| c.float() | Create a C Value of type `float` | |
| c.int() | nil | |
| c.int16_t() | Create a C Value of type `int16_t` | |
| c.int32_t() | Create a C Value of type `int32_t` | |
| c.int64_t() | Create a C Value of type `int64_t` | |
| c.long() | Create a C Value of type `long` | |
| c.longlong() | Create a C Value of type `long long` | |
| c.short() | Create a C Value of type `short` | |
| c.size_t() | Create a C Value of type `size_t` | |
| c.sizeof() | Gets the memory size of a C Object | number |
| c.string() | Create a C string (NULL terminated sequence of `char`) | |
| c.type() | Gets the type of a C Object | string |
| c.uchar() | Create a C Value of type `unsigned char` | |
| c.uint() | Create a C Value of type `unsigned int` | |
| c.uint16_t() | Create a C Value of type `unsigned int16_t` | |
| c.uint32_t() | Create a C Value of type `unsigned int32_t` | |
| c.uint64_t() | Create a C Value of type `unsigned int64_t` | |
| c.ulong() | Create a C Value of type `unsigned long` | |
| c.ulonglong() | Create a C Value of type `unsigned long long` | |
| c.ushort() | Create a C Value of type `unsigned short` | |
| c.wchar_t() | Create a C Value of type `wchar_t` | |
| c.wstring() | Create a C wide string (NULL terminated sequence of `wchar_t`) |
| Object | Description |
|---|---|
| Array | Object representation a C array |
| Library | Object representation of a Windows DLL |
| Pointer | Object representation a C pointer |
| Struct | Object representation a C struct |
| Union | Object representation a C union |
| Value | Object representation of a C value |
| Operation | Description |
|---|---|
| C to Lua conversion rules | Defines how the C FFI module convert C values to their Lua equivalent |
| Lua to C conversion rules | Defines how the C FFI module convert Lua values to their C equivalent |