Next: $LANGUAGE_NUM
: Number of current language, Previous: $L_KEYWORD
: Value of local RCS-like keyword, Up: Built-in functions [Contents][Index]
$LANGUAGE
: Identifier for current languageThis 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
: Number of current language.