Rename Log package to Trace

This commit is contained in:
2018-02-03 14:26:47 -06:00
parent fc9726b3ec
commit e7a396655c
9 changed files with 47 additions and 133 deletions

25
deps/ox/src/ox/trace/CMakeLists.txt vendored Normal file
View File

@@ -0,0 +1,25 @@
cmake_minimum_required(VERSION 2.8)
add_library(
OxTrace
trace.cpp
)
set_property(
TARGET
OxTrace
PROPERTY
POSITION_INDEPENDENT_CODE ON
)
install(
FILES
trace.hpp
DESTINATION
include/ox/mc
)
install(TARGETS OxTrace
LIBRARY DESTINATION lib/ox
ARCHIVE DESTINATION lib/ox
)

29
deps/ox/src/ox/trace/trace.cpp vendored Normal file
View File

@@ -0,0 +1,29 @@
/*
* Copyright 2015 - 2018 gtalent2@gmail.com
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <stdarg.h>
#include <stdio.h>
#include <ox/std/std.hpp>
#include "trace.hpp"
namespace ox {
struct TraceMsg {
const char *file;
int line;
uint64_t time;
const char *ch;
const char *msg;
};
void trace(const char *file, int line, const char *ch, const char *msg) {
}
}

17
deps/ox/src/ox/trace/trace.hpp vendored Normal file
View File

@@ -0,0 +1,17 @@
/*
* Copyright 2015 - 2018 gtalent2@gmail.com
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#pragma once
namespace ox {
void trace(const char *file, int line, const char *ch, const char *msg);
}
#define ox_trace(ch, msg) ox::trace(__FILE__, __LINE__, ch, msg)