Next: , Previous: $L_KEYWORD, Up: Built-in functions


7.2.3.33 $LANGUAGE: Identifier for current language

This expands to an identifier that denotes the current language, as follows:

Language $LANGUAGE
C $C
C++ $CPP
Fortran $N
Fortran-90 $N90
Ratfor $R
Ratfor-90 $R90
TeX $X
VERBATIM $V

Note that this outputs identifiers, not Fweb macros. They are intended to be used in $IF or $IFELSE statements such as

     $IF($LANGUAGE==$C, C-text, other-text)

For multiway switches, the $LANGUAGE_NUM built-in is more useful; see $LANGUAGE_NUM.