mirror of https://github.com/gabime/spdlog.git
astyle
parent
2f6a5eabe0
commit
c5a8eb5cdb
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
find . -name "*\.h" -o -name "*\.cpp"|xargs astyle --style=stroustrup
|
||||
|
@ -1,17 +1,15 @@
|
||||
#pragma once
|
||||
|
||||
namespace c11log{
|
||||
namespace details{
|
||||
struct null_mutex
|
||||
{
|
||||
void lock()
|
||||
{}
|
||||
void unlock()
|
||||
{}
|
||||
bool try_lock()
|
||||
{
|
||||
return true;
|
||||
namespace c11log {
|
||||
namespace details {
|
||||
struct null_mutex {
|
||||
void lock() {
|
||||
}
|
||||
void unlock() {
|
||||
}
|
||||
};
|
||||
bool try_lock() {
|
||||
return true;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
@ -1,28 +0,0 @@
|
||||
// stdafx.h : include file for standard system include files,
|
||||
// or project specific include files that are used frequently, but
|
||||
// are changed infrequently
|
||||
//
|
||||
#pragma once
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#include "targetver.h"
|
||||
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
|
||||
#endif
|
||||
|
||||
#include <string>
|
||||
#include <chrono>
|
||||
#include <ctime>
|
||||
#include <memory>
|
||||
#include <iostream>
|
||||
|
||||
|
||||
#ifndef _MSC_VER
|
||||
namespace std
|
||||
{
|
||||
template<typename T, typename ...Args>
|
||||
std::unique_ptr<T> make_unique( Args&& ...args )
|
||||
{
|
||||
return std::unique_ptr<T>( new T( std::forward<Args>(args)... ) );
|
||||
}
|
||||
}
|
||||
#endif
|
Loading…
Reference in New Issue