mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-02 11:12:37 +00:00
20 lines
493 B
Nim
20 lines
493 B
Nim
#
|
|
#
|
|
# Nim's Runtime Library
|
|
# (c) Copyright 2018 Nim contributors
|
|
#
|
|
# See the file "copying.txt", included in this
|
|
# distribution, for details about the copyright.
|
|
#
|
|
|
|
## This module provides access to the inferred .raises effects
|
|
## for Nim's macro system.
|
|
|
|
import macros
|
|
|
|
proc getRaisesListImpl(n: NimNode): NimNode = discard "see compiler/vmops.nim"
|
|
|
|
proc getRaisesList*(call: NimNode): NimNode =
|
|
expectKind call, nnkCallKinds
|
|
result = getRaisesListImpl(call[0])
|