From 8b8ee53bc73769bb25d967ba259dabc9b23e2e6f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 27 Nov 2012 13:29:55 +0100 Subject: Add builtin constants ‘langVersion’ and ‘nixVersion’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The integer constant ‘langVersion’ denotes the current language version. It gets increased every time a language feature is added/changed/removed. It's currently 1. The string constant ‘nixVersion’ contains the current Nix version, e.g. "1.2pre2980_9de6bc5". --- src/libstore/globals.hh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/libstore/globals.hh') diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh index d25ee6adca30..953eed9c36a2 100644 --- a/src/libstore/globals.hh +++ b/src/libstore/globals.hh @@ -190,4 +190,7 @@ private: extern Settings settings; +extern const string nixVersion; + + } -- cgit 1.4.1