Cleaned up code

main
anulax1225 ago%!(EXTRA string=1 year)
parent 5434ce9005
commit 551eb68a6a
  1. 4
      src/bakatools/base.h
  2. 4
      src/bakatools/file_system/dir_entry.cpp
  3. 2
      src/bakatools/file_system/dir_entry.h
  4. 2
      src/bakatools/logging/assert.h
  5. 4
      src/bakatoolspch.h

@ -0,0 +1,4 @@
#pragma once
#define BK_BIT_SHIFT(x) (1 << x)
#define BK_STRINGIFY(x) #x

@ -27,9 +27,9 @@ namespace Bk
return ent.file_size(); return ent.file_size();
} }
Bk::TimePoint<Bk::FileClock, Bk::Second> DirEntry::last_write() TimePoint<FileClock, Second> DirEntry::last_write()
{ {
return Bk::TimePoint<Bk::FileClock, Bk::Second>(ent.last_write_time()); return TimePoint<FileClock, Second>(ent.last_write_time());
} }
bool DirEntry::exists() bool DirEntry::exists()

@ -34,7 +34,7 @@ namespace Bk
std::string name(); std::string name();
uintmax_t size(); uintmax_t size();
Bk::TimePoint<Bk::FileClock, Bk::Second> last_write(); TimePoint<FileClock, Second> last_write();
bool exists(); bool exists();
FilePerms perms(); FilePerms perms();
uintmax_t hard_links(); uintmax_t hard_links();

@ -7,8 +7,6 @@ This file contains the assert macros. CORE macros musn't be used by the applicat
#include "log.h" #include "log.h"
#include <bakatools/string/format.h> #include <bakatools/string/format.h>
#define BK_STRINGIFY(x) #x
#ifdef BK_DEBUG #ifdef BK_DEBUG
#if defined(BK_PLATFORM_WINDOWS) #if defined(BK_PLATFORM_WINDOWS)
#define BK_DEBUGBREAK() __debugbreak() #define BK_DEBUGBREAK() __debugbreak()

@ -14,4 +14,6 @@
#include <memory> #include <memory>
#include <fstream> #include <fstream>
#include <filesystem> #include <filesystem>
#include <chrono> #include <chrono>
#include <bakatools/base.h>
Loading…
Cancel
Save