Merge pull request #37 from tsoding/experiment

Try to remove typed from parseObject
This commit is contained in:
Alexey Kutepov 2019-10-17 05:35:29 +07:00 committed by GitHub
commit 53293f68d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ const defaultConfig* = Config(
fps: 60
)
macro parseObject(obj: typed, key, val: string): typed =
macro parseObject(obj: typed, key, val: string) =
result = newNimNode(nnkCaseStmt).add(key)
for c in obj.getType[2]:
let a = case c.getType.typeKind