libtrackerboy/private/destroy2

Search:
Group by:
Source   Edit  

DO NOT INCLUDE THIS MODULE!

This module is intended to only be used internally by trackerboy modules.

take me back home ↩

Consts

destroyTakesVarT = false
Is true if the first parameter to =destroy procs are of var T. Source   Edit  

Macros

macro destroy2(fn)
Nim 2.0.0 changes the =destroy hook to take a T parameter instead of var T. This macro rewrites the first parameter type to var T on Nim versions before 2.0.0, this way you only need to write a single =destroy hook. Source   Edit