- Add a Logger framework - Add a spdlog logger adapter - Update README and vcpkg.json - fix some language error
17 lines
603 B
C
17 lines
603 B
C
#pragma once
|
|
|
|
#ifndef DEFS_H
|
|
#define DEFS_H
|
|
|
|
//// 检查 VIVID_2D_MYDLL_API 宏是否已经被定义
|
|
//#ifdef VIVID_2D_MYDLL_API
|
|
//// 如果已经定义,则先取消其定义(防止重复或冲突的定义)
|
|
//#undef VIVID_2D_MYDLL_API
|
|
//#endif
|
|
//
|
|
//// 强制将 VIVID_2D_MYDLL_API 宏定义为 __declspec(dllexport)
|
|
//// 作用:告诉编译器,使用此宏标记的类、函数或变量,必须从当前 DLL 中导出。
|
|
//// 这是在编译 DLL 自身源代码时,确保其接口能够被外部应用程序使用的关键步骤。
|
|
//#define VIVID_2D_MYDLL_API __declspec(dllexport)
|
|
|
|
#endif |