Select Git revision
ModuleRepository.cpp
-
Stéphane Del Pino authored
This is a special module that is *always* imported For this first version of the module we have three functions: getAvailableModules() -> string which returns the list of available pugs modules getPugsVersion() -> string getPugsBuildInfo() -> string which are moved from the 'utils' module There is no need to use `import core` in the preamble of a pugs script file.
Stéphane Del Pino authoredThis is a special module that is *always* imported For this first version of the module we have three functions: getAvailableModules() -> string which returns the list of available pugs modules getPugsVersion() -> string getPugsBuildInfo() -> string which are moved from the 'utils' module There is no need to use `import core` in the preamble of a pugs script file.
RevisionInfo.cpp 347 B
#include <RevisionInfo.hpp>
#include <pastis_git_revision.hpp>
std::string RevisionInfo::version()
{
return PASTIS_VERSION;
}
std::string RevisionInfo::head()
{
return PASTIS_HEAD;
}
std::string RevisionInfo::hash()
{
return PASTIS_HASH;
}
bool RevisionInfo::isClean()
{
#if PASTIS_IS_CLEAN
return true;
#else
return false;
#endif
}