mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-14 04:01:48 +00:00
24 lines
407 B
C++
24 lines
407 B
C++
#ifndef __TRACYFILESYSTEM_HPP__
|
|
#define __TRACYFILESYSTEM_HPP__
|
|
|
|
#include <stdint.h>
|
|
#include <sys/stat.h>
|
|
|
|
namespace tracy
|
|
{
|
|
|
|
class View;
|
|
class Worker;
|
|
|
|
static inline bool FileExists( const char* fn )
|
|
{
|
|
struct stat buf;
|
|
return stat( fn, &buf ) == 0 && ( buf.st_mode & S_IFREG ) != 0;
|
|
}
|
|
|
|
bool SourceFileValid( const char* fn, uint64_t olderThan, const View& view, const Worker& worker );
|
|
|
|
}
|
|
|
|
#endif
|