148
edits
| Line 149: | Line 149: | ||
const Point = new ctypes.StructType( | const Point = new ctypes.StructType( | ||
"Point", {x: ctypes.int32_t, y: ctypes.int32_t}); | "Point", [{x: ctypes.int32_t}, {y: ctypes.int32_t}]); | ||
Point.toSource() | Point.toSource() | ||
===> "ctypes.StructType("Point", {x: ctypes.int32_t, y: ctypes.int23_t})" | ===> "ctypes.StructType("Point", [{x: ctypes.int32_t}, {y: ctypes.int23_t}])" | ||
Pointer types also have: | Pointer types also have: | ||
edits