gdext/private/configdsl

Types

Section = OrderedTableRef[string, string]

Procs

proc `$`(cfg: Config): string {....raises: [], tags: [], forbids: [].}
proc `[]=`(sec: Section; key: string; value: string) {....raises: [], tags: [],
    forbids: [].}
proc `[]=`[T](sec: Section; key: string; value: T)
proc evalSection(section, body: NimNode): NimNode {....raises: [], tags: [],
    forbids: [].}
proc loadConfig(filename: string): Config {.
    ...raises: [IOError, OSError, Exception, ValueError, KeyError],
    tags: [ReadDirEffect, ReadIOEffect, WriteIOEffect, RootEffect], forbids: [].}
Loads the specified configuration file into a new Config instance.
proc newSection(): Section {....raises: [], tags: [], forbids: [].}
proc writeConfig(cfg: Config; filename: string) {....raises: [IOError],
    tags: [WriteIOEffect], forbids: [].}

Macros

macro `[]=`(sec: Section; key: string; value: untyped)
macro eval(cfg: Config; body): untyped
macro eval(section: Section; body): untyped