Skip to content

Commit

Permalink
Minor optimizations for release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Norbyte committed Oct 14, 2019
1 parent 6bf827f commit 4f24f1e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions APIDocs.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ A cast must be prepared by calling `NRD_BeginProjectile()`. Projectile parameter
Function signatures are final. Projectile parameters that are not documented are subject to change. An additional `NRD_ProjectileAddDamage` call may be introduced later on.

**Projectile parameters:**

| Parameter | Type | Description |
|--|--|--|
| SkillId | String | Skill to cast. Must be a Projectile or ProjectileStrike skill |
Expand Down Expand Up @@ -568,6 +569,7 @@ The clone API creates a copy of a specific item.
To start cloning an item, call `NRD_ItemCloneBegin()`. Additional modifications can be applied to the newly created item by calling `NRD_ItemCloneSetXyz(...)`. After the parameter modifications were performed, the clone operation is finished by calling `NRD_ItemClone()`.
**Clone parameters (passed to `NRD_ItemCloneSetXyz`):**
| Attribute | Type | Description |
|--|--|--|
| RootTemplate | GuidString | Root template of the new item |
Expand Down
3 changes: 2 additions & 1 deletion OsiInterface/OsiInterface.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -296,12 +296,13 @@ copy /Y "$(TargetPath)" "C:\Program Files (x86)\Steam\steamapps\common\Divinity
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>NDEBUG;_WINDOWS;_USRDLL;OSIINTERFACE_EXPORTS;OSI_NO_DEBUGGER;OSI_EXTENSION_BUILD;_SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING;_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>NDEBUG;_WINDOWS;_USRDLL;OSIINTERFACE_EXPORTS;OSI_NO_DEBUGGER;OSI_EXTENSION_BUILD;OSI_NO_DEBUG_LOG;_SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING;_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<AdditionalIncludeDirectories>$(SolutionDir)\External\x64-windows\include;$(SolutionDir)\External\glm;$(SolutionDir)\External\Detours\include;$(SolutionDir)\jsoncpp-master\include;$(ProjectDir)</AdditionalIncludeDirectories>
<DisableSpecificWarnings>4251</DisableSpecificWarnings>
<LanguageStandard>stdcpp17</LanguageStandard>
<RuntimeTypeInfo>false</RuntimeTypeInfo>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand Down
6 changes: 6 additions & 0 deletions OsiInterface/OsirisProxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

namespace osidbg {

#if !defined(OSI_NO_DEBUG_LOG)
#define OsiError(msg) { \
std::stringstream ss; \
ss << __FUNCTION__ "(): " msg; \
Expand All @@ -30,6 +31,11 @@ namespace osidbg {
ss << msg; \
gOsirisProxy->LogOsirisMsg(ss.str()); \
}
#else
#define OsiError(msg) (void)0
#define OsiWarn(msg) (void)0
#define OsiMsg(msg) (void)0
#endif

class OsirisProxy
{
Expand Down

0 comments on commit 4f24f1e

Please sign in to comment.