当前位置: 首页 > news >正文

汕头seo建站分别是什么

汕头seo建站,分别是什么,在百度做网站,wordpress悬赏功能实现配置#xff1a; 日志库文件github#xff1a; GitHub - gabime/spdlog: Fast C logging library. 新建vendor文件夹 将下载好的spdlog放入 配置YOTOEngine的附加包含目录#xff1a; 配置Sandbox的附加包含目录#xff1a; 包装spdlog#xff1a; 在YOTO文件夹下创建…配置 日志库文件github GitHub - gabime/spdlog: Fast C logging library. 新建vendor文件夹 将下载好的spdlog放入 配置YOTOEngine的附加包含目录 配置Sandbox的附加包含目录 包装spdlog 在YOTO文件夹下创建Log.cpp和log.h log.h #pragma once #includeCore.h #includespdlog/spdlog.h #include spdlog/sinks/stdout_color_sinks.h namespace YOTO {class YOTO_API Log{public:static void Init();//inline是为了提高性能相当于直接把函数里的代码段放在那里//返回的是Logger分为服务器logger和核心loggerinline static std::shared_ptrspdlog::logger GetCoreLogger() { return s_CoreLogger; }inline static std::shared_ptrspdlog::logger GetClientLogger() { return s_ClientLogger; }private:static std::shared_ptrspdlog::logger s_CoreLogger;static std::shared_ptrspdlog::logger s_ClientLogger;}; } //Core 的log 的简化 #define YT_CORE_ERROR(...) ::YOTO::Log::GetCoreLogger()-error(__VA_ARGS__) #define YT_CORE_WARN(...) ::YOTO::Log::GetCoreLogger()-warn(__VA_ARGS__) #define YT_CORE_INFO(...) ::YOTO::Log::GetCoreLogger()-info(__VA_ARGS__) #define YT_CORE_TRACE(...) ::YOTO::Log::GetCoreLogger()-trace(__VA_ARGS__) #define YT_CORE_FATAL(...) ::YOTO::Log::GetCoreLogger()-fatal(__VA_ARGS__) //client 的log的简化 #define YT_CLIENT_ERROR(...) ::YOTO::Log::GetClientLogger()-error(__VA_ARGS__) #define YT_CLIENT_WARN(...) ::YOTO::Log::GetClientLogger()-warn(__VA_ARGS__) #define YT_CLIENT_INFO(...) ::YOTO::Log::GetClientLogger()-info(__VA_ARGS__) #define YT_CLIENT_TRACE(...) ::YOTO::Log::GetClientLogger()-trace(__VA_ARGS__) #define YT_CLIENT_FATAL(...) ::YOTO::Log::GetClientLogger()-fatal(__VA_ARGS__) log.cpp #include Log.hnamespace YOTO {std::shared_ptrspdlog::logger Log::s_CoreLogger;std::shared_ptrspdlog::logger Log::s_ClientLogger;void Log::Init() {//设置日志格式spdlog::set_pattern(%^[%T] %n: %v%$);//创建多线程logger核心logger为YOTOs_CoreLogger spdlog::stdout_color_mt(YOTO);//设置打印消息的级别trace是打印所有东西筛选器s_CoreLogger-set_level(spdlog::level::level_enum::trace);//客户端的为APPs_ClientLogger spdlog::stdout_color_mt(APP);s_ClientLogger-set_level(spdlog::level::level_enum::trace);} }测试 在YOTO.h中加入#include YOTO/Log.h记得重新生成把dll加入到Sandbox后续会使用premake简化该流程这里暂时手动生成 我们在入口点修改代码测试 #pragma once#ifdef YT_PLATFORM_WINDOWS #include ../YOTO.hextern YOTO::Application* YOTO::CreateApplication(); void main(int argc,char** argv) {YOTO::Log::Init();YT_CORE_ERROR(测试警告信息);int test 1;YT_CLIENT_INFO(测试info:test{0},test);auto app YOTO::CreateApplication();app-Run();delete app; } #endif 输出 Premake配置安装 点击下载https://github.com/premake/premake-core/releases/download/v5.0.0-beta2/premake-5.0.0-beta2-windows.zip 创建vendor文件夹文件结构如下 放入声明文件LICENSE.txt: Copyright (c) 2003-2016 Jason Perkins and individual contributors. All rights reserved.Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:1. Redistributions of source code must retain the above copyright notice,this list of conditions and the following disclaimer.2. Redistributions in binary form must reproduce the above copyright notice,this list of conditions and the following disclaimer in the documentationand/or other materials provided with the distribution.3. Neither the name of Premake nor the names of its contributors may beused to endorse or promote products derived from this software withoutspecific prior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 编写premake5.lua文件 workspace YOTOEngine -- sln文件名architecture x64 configurations{Debug,Release,Dist}-- 组成输出目录:Debug-windows-x86_64 outputdir %{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}project YOTOEngine location YOTOEngine--在sln所属文件夹下的Hazel文件夹kind SharedLib--dll动态库language Ctargetdir (bin/ .. outputdir .. /%{prj.name}) -- 输出目录objdir (bin-int/ .. outputdir .. /%{prj.name})-- 中间目录-- 包含的所有h和cpp文件files{%{prj.name}/src/**.h,%{prj.name}/src/**.cpp}-- 包含目录includedirs{%{prj.name}/vendor/spdlog-1.x/include}-- 如果是window系统filter system:windowscppdialect C17-- On:代码生成的运行库选项是MTD,静态链接MSVCRT.lib库;-- Off:代码生成的运行库选项是MDD,动态链接MSVCRT.dll库;打包后的exe放到另一台电脑上若无这个dll会报错staticruntime On systemversion latest -- windowSDK版本-- 预处理器定义defines{YT_PLATFORM_WINDOWS,YT_BUILD_DLL}-- 编译好后移动Hazel.dll文件到Sandbox文件夹下postbuildcommands{({COPY} %{cfg.buildtarget.relpath} ../bin/ .. outputdir .. /Sandbox)}-- 不同配置下的预定义不同filter configurations:Debugdefines YT_DEBUGsymbols Onfilter configurations:Releasedefines YT_RELEASEoptimize Onfilter configurations:Distdefines YT_DISToptimize Onproject Sandboxlocation Sandboxkind ConsoleApplanguage Ctargetdir (bin/ .. outputdir .. /%{prj.name})objdir (bin-int/ .. outputdir .. /%{prj.name})files{%{prj.name}/src/**.h,%{prj.name}/src/**.cpp}-- 同样包含spdlog头文件includedirs{YOTOEngine/vendor/spdlog-1.x/include,YOTOEngine/src}-- 引用YOTOEnginelinks{YOTOEngine}filter system:windowscppdialect C17staticruntime Onsystemversion latestdefines{YT_PLATFORM_WINDOWS}filter configurations:Debugdefines YT_DEBUGsymbols Onfilter configurations:Releasedefines YT_RELEASEoptimize Onfilter configurations:Distdefines YT_DISToptimize On创建Generate.bat文件每次将bin和bin-int删除然后点这个文件就可以自动生成。 call vendor\bin\premake\premake5.exe vs2019 PAUSE 遇到问题不要慌 这个问题是还没创建完就启动了只需要等一会儿就好了。 等待10秒钟之后启动 今天就看到这里下一集事件系统【持续更新中】
http://www.zqtcl.cn/news/157567/

相关文章:

  • 信息服务平台有哪些网站东莞网站关键词
  • 青岛网站定制手机软件开发和网站开发
  • 网站数据库地址是什么看企业网站怎么做到百度秒收
  • 南昌网站建设资讯wordpress dynamo
  • 网站建设招标样本南宁培训网站建设
  • 找回网站备案密码wordpress 2015主题
  • 网站电子商务平台建设域名查询系统
  • 设计制造中国第一架飞机的人是南宁百度快速优化
  • 淘宝联盟网站模板上海做企业网站
  • 繁体中文网站 怎么做wordpress禁止压缩图片
  • 怎么做图片网站百度云做.net网站
  • 长沙网上商城网站建设方案wordpress兼容mip
  • 横向网站模板上海 建筑
  • 手机wap网站程序上海网站制作库榆
  • 深圳网站建设 骏域网站建设推广软文范例大全500
  • 深圳广东网站建设套餐最近新闻事件
  • 电子商务网站建设与管理 pdf“设计网站”
  • 聊城wap网站建设清溪东莞网站建设
  • 书籍网站建设规划书app开发公司价格表
  • 小程序网站模板住建个人证书查询网
  • 西安 美院 网站建设贵阳美丽乡村建设网站
  • 平顶山市哪里有做网站的wordpress应用教程
  • 制作企业网站的实训报告医院网站设计模板
  • 要做网站照片怎么处理广东外发加工网
  • 做国际网站每年要多少钱厦门 外贸商城网站
  • 城乡建设学校官方网站程序外包网站
  • 深圳 网站设计师 招聘西数网站管理助手 伪静态
  • 广州网站备案要求国外工装设计网站大全
  • php+mysql 2012也买酒商城网站源码怎么用net123做网站
  • 西充移动网站建设如何设计一个简洁的logo