1 /******************************************************************************* 2 * Compatibility layer for different D/Phobos versions 3 * 4 * Authors: Matthew Soucy, dproto@msoucy.me 5 */ 6 module dproto.compat; 7 8 // nogc compat shim using UDAs (@nogc must appear as function prefix) 9 static if (__VERSION__ < 2066) enum nogc; 10 11 enum DPROTO_PROTOBUF_VERSION = 2.2;