Skip to content

Commit

Permalink
Code review
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Sep 17, 2024
1 parent cf239b7 commit 4e37245
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Meshconvert/CmdLineHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
#include <set>
#include <string>

#ifndef TOOL_VERSION
#error Define TOOL_VERSION before including this header
#endif


namespace Helpers
{
Expand Down Expand Up @@ -164,7 +168,7 @@ namespace Helpers

if (!*version || wcscmp(version, L"1.0.0.0") == 0)
{
swprintf_s(version, L"%03d (library)", DIRECTX_MESH_VERSION);
swprintf_s(version, L"%03d (library)", TOOL_VERSION);
}

if (versionOnly)
Expand Down
2 changes: 2 additions & 0 deletions Meshconvert/Meshconvert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
#include <tuple>

#include "Mesh.h"

#define TOOL_VERSION DIRECTX_MESH_VERSION
#include "CmdLineHelpers.h"

using namespace Helpers;
Expand Down

0 comments on commit 4e37245

Please sign in to comment.