mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
18 lines
355 B
C++
18 lines
355 B
C++
#include "TracyFilesystem.hpp"
|
|
#include "TracyView.hpp"
|
|
|
|
namespace tracy
|
|
{
|
|
|
|
bool SourceFileValid( const char* fn, uint64_t olderThan, const View& view )
|
|
{
|
|
struct stat buf;
|
|
if( stat( view.SourceSubstitution( fn ), &buf ) == 0 && ( buf.st_mode & S_IFREG ) != 0 )
|
|
{
|
|
return (uint64_t)buf.st_mtime < olderThan;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
}
|