Skip to content

Commit

Permalink
added missing __declspec(dllexport) for logger
Browse files Browse the repository at this point in the history
  • Loading branch information
KeinNiemand committed Sep 18, 2024
1 parent e5d6729 commit 78df03e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions Injector/Injector.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalManifestDependencies>
</AdditionalManifestDependencies>
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
</Link>
<Manifest>
<AdditionalManifestFiles>$(MSBuildProjectDirectory)\app.manifest; %(AdditionalManifestFiles)</AdditionalManifestFiles>
Expand Down
6 changes: 6 additions & 0 deletions MiMallocReplacer/MiMallocReplacer.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,13 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<TargetName>MiMallocReplacer</TargetName>
<CopyLocalDeploymentContent>true</CopyLocalDeploymentContent>
<CopyLocalProjectReference>true</CopyLocalProjectReference>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<TargetName>MiMallocReplacer</TargetName>
<CopyLocalDeploymentContent>true</CopyLocalDeploymentContent>
<CopyLocalProjectReference>true</CopyLocalProjectReference>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<TargetName>MiMallocReplacer</TargetName>
Expand All @@ -96,6 +100,7 @@
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;_DEBUG;FACTORIOLARGEPAGES_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<LanguageStandard>stdcpp20</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -111,6 +116,7 @@
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;NDEBUG;FACTORIOLARGEPAGES_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<LanguageStandard>stdcpp20</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand Down
12 changes: 6 additions & 6 deletions SharedCode/Logger.ixx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module;

export module Logger;
export import <string>;
export import <iostream>;

export class Logger {
export __declspec(dllexport) class Logger {
public:
enum class Level : int {
Error = 1,
Expand All @@ -12,10 +12,10 @@ public:
Debug = 4,
};

static void SetVerbosity(int verbosity);
static int GetVerbosity();
static void Log(Level level, const std::string& message);
static void Log(Level level, const std::wstring& message);
static __declspec(dllexport) void SetVerbosity(int verbosity);
static __declspec(dllexport) int GetVerbosity();
static __declspec(dllexport) void Log(Level level, const std::string& message);
static __declspec(dllexport) void Log(Level level, const std::wstring& message);

private:
static int verbosity_level;
Expand Down

0 comments on commit 78df03e

Please sign in to comment.