1; -----------------------------------------------------------------------------
2;
3;  Copyright (C) 1997-2013  Krzysztof M. Gorski, Eric Hivon, Anthony J. Banday
4;
5;
6;
7;
8;
9;  This file is part of HEALPix.
10;
11;  HEALPix is free software; you can redistribute it and/or modify
12;  it under the terms of the GNU General Public License as published by
13;  the Free Software Foundation; either version 2 of the License, or
14;  (at your option) any later version.
15;
16;  HEALPix is distributed in the hope that it will be useful,
17;  but WITHOUT ANY WARRANTY; without even the implied warranty of
18;  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19;  GNU General Public License for more details.
20;
21;  You should have received a copy of the GNU General Public License
22;  along with HEALPix; if not, write to the Free Software
23;  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
24;
25;  For more information about HEALPix see http://healpix.sourceforge.net
26;
27; -----------------------------------------------------------------------------
28function is_idl, help=help
29;+
30;   flag = is_idl( [/HELP] )
31;
32;   flag will take value 1 if genuine IDL is being run
33;   and 0 otherwise
34;
35;   See also  is_gdl() and is_fl()
36
37;   2017-06-13
38;
39;-
40
41routine = 'is_idl'
42if keyword_set(help) then begin
43    doc_library,routine
44    return,-1
45endif
46
47flag = ~(is_gdl() || is_fl())
48
49return, flag
50end
51