Menu

SyntaxCheckFunction

Brad Lanam

Wiki Home
Syntax
Checks

check_function

Checks if function‑name exists. The function is determined to exist if there is a macro defined with that name, or if the function is found.

check_function <function-name>;
check_function <function-name> { <attribute-statements> }

Generated Name: Prefix: _function_
Example: _function_statvfs

Examples
check_function malloc;
check_function fstat {
  header sys/stat.h;
}
if (! MKC_SYS_WINDOWS) {
  check_function MAX {
    header sys/param.h;
    name _function_max;
  }
}
Attributes

Wiki Home
Syntax
Checks


Related

Wiki: Home
Wiki: Syntax
Wiki: SyntaxAttrAlternate
Wiki: SyntaxAttrCompileFlag
Wiki: SyntaxAttrHeader
Wiki: SyntaxAttrLinkFlag
Wiki: SyntaxAttrName
Wiki: SyntaxCheck