30 template<
class Context>
31 bool Foam::functionEntries::ifEntry::execute
33 DynamicList<filePos>& stack,
34 const dictionary& contextDict,
39 const label nNested = stack.size();
41 stack.append(
filePos(is.name(), is.lineNumber()));
47 IStringStream argStream(arg);
48 argStream.lineNumber() =
operator[](1).lineNumber();
50 const Switch doIf(
e.stream());
52 bool ok = ifeqEntry::execute(doIf, stack, contextDict, context, is);
54 if (stack.size() != nNested)
57 <<
"Did not find matching #endif for "
59 <<
" at line " << stack.last().second()
T & operator[](const label)
Return element of UList.
Tuple2< fileName, label > filePos
primitiveEntry(const label keyLineNumber, const keyType &key)
Construct from line number and keyword.
Template function which returns the un-mangled name of a given type. Useful for types which do not ha...
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.