; ----------------------------------------------------------------------------- ; ; Copyright (C) 1997-2013 Krzysztof M. Gorski, Eric Hivon, Anthony J. Banday ; ; ; ; ; ; This file is part of HEALPix. ; ; HEALPix is free software; you can redistribute it and/or modify ; it under the terms of the GNU General Public License as published by ; the Free Software Foundation; either version 2 of the License, or ; (at your option) any later version. ; ; HEALPix is distributed in the hope that it will be useful, ; but WITHOUT ANY WARRANTY; without even the implied warranty of ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ; GNU General Public License for more details. ; ; You should have received a copy of the GNU General Public License ; along with HEALPix; if not, write to the Free Software ; Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ; ; For more information about HEALPix see http://healpix.sourceforge.net ; ; ----------------------------------------------------------------------------- function is_idl, help=help ;+ ; flag = is_idl( [/HELP] ) ; ; flag will take value 1 if genuine IDL is being run ; and 0 otherwise ; ; See also is_gdl() and is_fl() ; 2017-06-13 ; ;- routine = 'is_idl' if keyword_set(help) then begin doc_library,routine return,-1 endif flag = ~(is_gdl() || is_fl()) return, flag end