Welcome to mirror list, hosted at ThFree Co, Russian Federation.

TracyFilesystem.hpp « server - github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 55248dde662218f2f05b7bfa088737c3cc132175 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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