-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finish modularization (barring one Visual Studio bug internal compile…
…r error in MainWindow.cpp).
- Loading branch information
Showing
31 changed files
with
1,124 additions
and
1,069 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,6 +51,7 @@ dlldata.c | |
project.lock.json | ||
artifacts/ | ||
|
||
*.ifc | ||
*_i.c | ||
*_p.c | ||
*_i.h | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,41 @@ | ||
//---------------------------------------------------------------------------- | ||
// Author: Dwayne Robinson | ||
// History: 2015-06-19 Created | ||
//---------------------------------------------------------------------------- | ||
#pragma once | ||
|
||
#ifndef BUILD_OPTIMIZATION_STRING | ||
#if defined(DEBUG) || defined(_DEBUG) | ||
#define BUILD_OPTIMIZATION_STRING L"Debug" | ||
#else | ||
#define BUILD_OPTIMIZATION_STRING L"Release" | ||
#endif | ||
#endif | ||
|
||
#if defined(_M_IX86) | ||
#define BUILD_ARCHITECTURE_STRING L"x86 32-bit" | ||
#elif defined(_M_X64) | ||
#define BUILD_ARCHITECTURE_STRING L"64-bit" | ||
#elif defined(_M_ARM_FP) | ||
#define BUILD_ARCHITECTURE_STRING L"ARM" | ||
#else | ||
#define BUILD_ARCHITECTURE_STRING L"Unknown" | ||
#endif | ||
|
||
#ifndef NDEBUG | ||
#define DEBUG_MESSAGE(...) Application::DebugLog(__VA_ARGS__) | ||
#else | ||
#define DEBUG_MESSAGE(...) (0) | ||
#endif | ||
|
||
#if !defined(APPLICATION_TITLE) | ||
#define APPLICATION_TITLE L"TextLayoutSampler (displays text with various text layout/rendering API's)" | ||
#endif | ||
|
||
#if !defined(BUILD_TITLE_STRING) | ||
#define BUILD_TITLE_STRING \ | ||
APPLICATION_TITLE L", "\ | ||
TEXT(__DATE__) L", "\ | ||
BUILD_ARCHITECTURE_STRING L", "\ | ||
BUILD_OPTIMIZATION_STRING | ||
#endif | ||
|
||
|
||
class Application | ||
{ | ||
public: | ||
static HINSTANCE g_hModule; | ||
static MSG g_msg; | ||
static HWND g_mainHwnd; | ||
|
||
static void Dispatch(); | ||
static int DisplayError(__in_z const char16_t* message, __in_z_opt const char16_t* formatString, int functionResult); | ||
static void Fail(__in_z const char16_t* message, __in_z_opt const char16_t* formatString, int functionResult); | ||
static void DebugLog(const char16_t* logMessage, ...); | ||
static HRESULT ExceptionToHResult() throw(); | ||
}; | ||
//---------------------------------------------------------------------------- | ||
// Author: Dwayne Robinson | ||
// History: 2015-06-19 Created | ||
//---------------------------------------------------------------------------- | ||
#pragma once | ||
|
||
#ifndef BUILD_OPTIMIZATION_STRING | ||
#if defined(DEBUG) || defined(_DEBUG) | ||
#define BUILD_OPTIMIZATION_STRING L"Debug" | ||
#else | ||
#define BUILD_OPTIMIZATION_STRING L"Release" | ||
#endif | ||
#endif | ||
|
||
#if defined(_M_IX86) | ||
#define BUILD_ARCHITECTURE_STRING L"x86 32-bit" | ||
#elif defined(_M_X64) | ||
#define BUILD_ARCHITECTURE_STRING L"64-bit" | ||
#elif defined(_M_ARM_FP) | ||
#define BUILD_ARCHITECTURE_STRING L"ARM" | ||
#else | ||
#define BUILD_ARCHITECTURE_STRING L"Unknown" | ||
#endif | ||
|
||
#ifndef NDEBUG | ||
#define DEBUG_MESSAGE(...) Application::DebugLog(__VA_ARGS__) | ||
#else | ||
#define DEBUG_MESSAGE(...) (0) | ||
#endif | ||
|
||
#if !defined(APPLICATION_TITLE) | ||
#define APPLICATION_TITLE L"TextLayoutSampler (displays text with various text layout/rendering API's)" | ||
#endif | ||
|
||
#if !defined(BUILD_TITLE_STRING) | ||
#define BUILD_TITLE_STRING \ | ||
APPLICATION_TITLE L", "\ | ||
TEXT(__DATE__) L", "\ | ||
BUILD_ARCHITECTURE_STRING L", "\ | ||
BUILD_OPTIMIZATION_STRING | ||
#endif |
Oops, something went wrong.