Procs
proc ensureComputeInitialized() {....raises: [OperationError], tags: [], forbids: [].}
- Ensures compute functions are registered. Thread-safe one-time initialization.
Macros
macro arcGObject(body: untyped): untyped
-
Statement macro — annotate a type section to auto-generate ARC hooks. Every object type in the block gets =destroy, =wasMoved, =dup, =copy, and toPtr.
Generic types are supported: type Foo*[T] = object ... produces hooks with the proper generic parameter list.
arcGObject: type FileInfo* = object handle*: ptr GArrowFileInfo FileSelector* = object handle*: ptr GArrowFileSelector
macro arcRef(unrefName, refName: static[string]; body: untyped): untyped
-
Statement macro with custom ref/unref functions. Supports generic types the same way as arcGObject.
arcRef("g_uri_unref", "g_uri_ref"): type Uri* = object handle*: ptr GUri