Skip to content

Commit

Permalink
use tables
Browse files Browse the repository at this point in the history
Signed-off-by: George Lemon <[email protected]>
  • Loading branch information
georgelemon committed Apr 2, 2024
1 parent 43bbcf5 commit c4d2cb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/voodoo/getter.nim
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
# Made by Humans from OpenPeeps
# https://github.com/openpeeps/voodoo

import std/[macros, macrocache, strutils]
import std/[macros, tables, strutils]

const genGetters = CacheTable"genGetters"
var genGetters {.compileTime.} = OrderedTable[string, NimNode]()
macro getters*(obj: untyped) =
# let impl = getImpl(x)
let objident = obj[0][0][1]
Expand Down Expand Up @@ -64,4 +64,4 @@ macro expandGetters* =
result = newStmtList()
for k, x in genGetters:
add result, x
setLen(genGetters, 0)
clear(genGetters)

0 comments on commit c4d2cb5

Please sign in to comment.