mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 14:54:34 +00:00
18 lines
259 B
C++
18 lines
259 B
C++
|
#ifndef __TRACYFILESYSTEM_HPP__
|
||
|
#define __TRACYFILESYSTEM_HPP__
|
||
|
|
||
|
#include <sys/stat.h>
|
||
|
|
||
|
namespace tracy
|
||
|
{
|
||
|
|
||
|
static inline bool FileExists( const char* fn )
|
||
|
{
|
||
|
struct stat buf;
|
||
|
return stat( fn, &buf ) == 0 && ( buf.st_mode & S_IFREG ) != 0;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
#endif
|