cmakepp_lang/utilities/file_exists

cmakepp_lang/utilities/file_exists.cpp_file_exists(result file)

Determines if a provided path points to an existing file.

Parameters:
  • result (desc) – Name for variable which will hold the result.

  • file (path) – Path which may be pointing to an existing file.

Returns:

result will be set to TRUE if file is the absolute path of a file and FALSE otherwise. Of note if file is the absolute path to a directory the result is also FALSE.

Return type:

bool

Variables:

CMAKEPP_LANG_DEBUG_MODE (bool) – Used to determine if CMakePP is being run in debug mode or not.

Error Checking

If CMakePP is run in debug mode cpp_file_exists will assert that it has been called with two arguments and that those arguments are of the correct types.