summary refs log blame commit diff stats
path: root/lib/std/effecttraits.nim
blob: a5d799786610554832cc7b5fd79aad2b1420889c (plain) (tree)


















                                                                              
#
#
#            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])