Skip to content

Commit

Permalink
Update project files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkshine committed Aug 8, 2014
1 parent c22bb12 commit eeb4ecd
Show file tree
Hide file tree
Showing 24 changed files with 385 additions and 31 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Debug
Release
JITDebug
JITRelease
JITDebugBinLog
JITReleaseBinLog

# Files generated by Mac OS X Finder
.DS_Store
Expand Down
327 changes: 327 additions & 0 deletions amxmodx/msvc10/amxmodx_mm.sln

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion amxmodx/sdk/amxxmodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2712,6 +2712,7 @@ void MF_LogError(AMX *amx, int err, const char *fmt, ...)
// Makes sure compiler reports errors when macros are invalid
void ValidateMacros_DontCallThis_Smiley()
{
const cell str[] = { 's', 't', 'r', '\0' };
MF_BuildPathname("str", "str", 0);
MF_BuildPathnameR(NULL, 0, "%d", 0);
MF_FormatAmxString(NULL, 0, 0, NULL);
Expand All @@ -2724,7 +2725,7 @@ void ValidateMacros_DontCallThis_Smiley()
MF_FindScriptByName("str");
MF_SetAmxString(NULL, 0, "str", 0);
MF_SetAmxStringUTF8Char(NULL, 0, "str", 0, 0);
MF_SetAmxStringUTF8Cell(NULL, 0, "str", 0, 0);
MF_SetAmxStringUTF8Cell(NULL, 0, str, 0, 0);
MF_GetAmxString(NULL, 0, 0, 0);
MF_GetAmxStringLen(NULL);
MF_CopyAmxMemory(NULL, NULL, 0);
Expand Down
9 changes: 7 additions & 2 deletions compiler/amxxpc/amxxpc.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,13 @@
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<OutDir>$(Configuration)\</OutDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;AMX_ANSIONLY;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
Expand All @@ -59,6 +62,7 @@
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<AdditionalIncludeDirectories>..\..\amxmodx\;C:\Program Files (x86)\Visual Leak Detector\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<AdditionalDependencies>zlib.lib;%(AdditionalDependencies)</AdditionalDependencies>
Expand All @@ -71,14 +75,15 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;AMX_ANSIONLY;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<StructMemberAlignment>Default</StructMemberAlignment>
<RuntimeTypeInfo>false</RuntimeTypeInfo>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<AdditionalIncludeDirectories>..\..\amxmodx\;C:\Program Files (x86)\Visual Leak Detector\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<AdditionalDependencies>zlib.lib;%(AdditionalDependencies)</AdditionalDependencies>
Expand Down
3 changes: 2 additions & 1 deletion dlls/cstrike/cstrike/sdk/amxxmodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2712,6 +2712,7 @@ void MF_LogError(AMX *amx, int err, const char *fmt, ...)
// Makes sure compiler reports errors when macros are invalid
void ValidateMacros_DontCallThis_Smiley()
{
const cell str[] = { 's', 't', 'r', '\0' };
MF_BuildPathname("str", "str", 0);
MF_BuildPathnameR(NULL, 0, "%d", 0);
MF_FormatAmxString(NULL, 0, 0, NULL);
Expand All @@ -2724,7 +2725,7 @@ void ValidateMacros_DontCallThis_Smiley()
MF_FindScriptByName("str");
MF_SetAmxString(NULL, 0, "str", 0);
MF_SetAmxStringUTF8Char(NULL, 0, "str", 0, 0);
MF_SetAmxStringUTF8Cell(NULL, 0, "str", 0, 0);
MF_SetAmxStringUTF8Cell(NULL, 0, str, 0, 0);
MF_GetAmxString(NULL, 0, 0, 0);
MF_GetAmxStringLen(NULL);
MF_CopyAmxMemory(NULL, NULL, 0);
Expand Down
3 changes: 2 additions & 1 deletion dlls/cstrike/csx/sdk/amxxmodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2712,6 +2712,7 @@ void MF_LogError(AMX *amx, int err, const char *fmt, ...)
// Makes sure compiler reports errors when macros are invalid
void ValidateMacros_DontCallThis_Smiley()
{
const cell str[] = { 's', 't', 'r', '\0' };
MF_BuildPathname("str", "str", 0);
MF_BuildPathnameR(NULL, 0, "%d", 0);
MF_FormatAmxString(NULL, 0, 0, NULL);
Expand All @@ -2724,7 +2725,7 @@ void ValidateMacros_DontCallThis_Smiley()
MF_FindScriptByName("str");
MF_SetAmxString(NULL, 0, "str", 0);
MF_SetAmxStringUTF8Char(NULL, 0, "str", 0, 0);
MF_SetAmxStringUTF8Cell(NULL, 0, "str", 0, 0);
MF_SetAmxStringUTF8Cell(NULL, 0, str, 0, 0);
MF_GetAmxString(NULL, 0, 0, 0);
MF_GetAmxStringLen(NULL);
MF_CopyAmxMemory(NULL, NULL, 0);
Expand Down
3 changes: 2 additions & 1 deletion dlls/dod/dodfun/sdk/amxxmodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2712,6 +2712,7 @@ void MF_LogError(AMX *amx, int err, const char *fmt, ...)
// Makes sure compiler reports errors when macros are invalid
void ValidateMacros_DontCallThis_Smiley()
{
const cell str[] = { 's', 't', 'r', '\0' };
MF_BuildPathname("str", "str", 0);
MF_BuildPathnameR(NULL, 0, "%d", 0);
MF_FormatAmxString(NULL, 0, 0, NULL);
Expand All @@ -2724,7 +2725,7 @@ void ValidateMacros_DontCallThis_Smiley()
MF_FindScriptByName("str");
MF_SetAmxString(NULL, 0, "str", 0);
MF_SetAmxStringUTF8Char(NULL, 0, "str", 0, 0);
MF_SetAmxStringUTF8Cell(NULL, 0, "str", 0, 0);
MF_SetAmxStringUTF8Cell(NULL, 0, str, 0, 0);
MF_GetAmxString(NULL, 0, 0, 0);
MF_GetAmxStringLen(NULL);
MF_CopyAmxMemory(NULL, NULL, 0);
Expand Down
3 changes: 2 additions & 1 deletion dlls/dod/dodx/sdk/amxxmodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2712,6 +2712,7 @@ void MF_LogError(AMX *amx, int err, const char *fmt, ...)
// Makes sure compiler reports errors when macros are invalid
void ValidateMacros_DontCallThis_Smiley()
{
const cell str[] = { 's', 't', 'r', '\0' };
MF_BuildPathname("str", "str", 0);
MF_BuildPathnameR(NULL, 0, "%d", 0);
MF_FormatAmxString(NULL, 0, 0, NULL);
Expand All @@ -2724,7 +2725,7 @@ void ValidateMacros_DontCallThis_Smiley()
MF_FindScriptByName("str");
MF_SetAmxString(NULL, 0, "str", 0);
MF_SetAmxStringUTF8Char(NULL, 0, "str", 0, 0);
MF_SetAmxStringUTF8Cell(NULL, 0, "str", 0, 0);
MF_SetAmxStringUTF8Cell(NULL, 0, str, 0, 0);
MF_GetAmxString(NULL, 0, 0, 0);
MF_GetAmxStringLen(NULL);
MF_CopyAmxMemory(NULL, NULL, 0);
Expand Down
3 changes: 2 additions & 1 deletion dlls/engine/sdk/amxxmodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2712,6 +2712,7 @@ void MF_LogError(AMX *amx, int err, const char *fmt, ...)
// Makes sure compiler reports errors when macros are invalid
void ValidateMacros_DontCallThis_Smiley()
{
const cell str[] = { 's', 't', 'r', '\0' };
MF_BuildPathname("str", "str", 0);
MF_BuildPathnameR(NULL, 0, "%d", 0);
MF_FormatAmxString(NULL, 0, 0, NULL);
Expand All @@ -2724,7 +2725,7 @@ void ValidateMacros_DontCallThis_Smiley()
MF_FindScriptByName("str");
MF_SetAmxString(NULL, 0, "str", 0);
MF_SetAmxStringUTF8Char(NULL, 0, "str", 0, 0);
MF_SetAmxStringUTF8Cell(NULL, 0, "str", 0, 0);
MF_SetAmxStringUTF8Cell(NULL, 0, str, 0, 0);
MF_GetAmxString(NULL, 0, 0, 0);
MF_GetAmxStringLen(NULL);
MF_CopyAmxMemory(NULL, NULL, 0);
Expand Down
3 changes: 2 additions & 1 deletion dlls/fakemeta/sdk/amxxmodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2712,6 +2712,7 @@ void MF_LogError(AMX *amx, int err, const char *fmt, ...)
// Makes sure compiler reports errors when macros are invalid
void ValidateMacros_DontCallThis_Smiley()
{
const cell str[] = { 's', 't', 'r', '\0' };
MF_BuildPathname("str", "str", 0);
MF_BuildPathnameR(NULL, 0, "%d", 0);
MF_FormatAmxString(NULL, 0, 0, NULL);
Expand All @@ -2724,7 +2725,7 @@ void ValidateMacros_DontCallThis_Smiley()
MF_FindScriptByName("str");
MF_SetAmxString(NULL, 0, "str", 0);
MF_SetAmxStringUTF8Char(NULL, 0, "str", 0, 0);
MF_SetAmxStringUTF8Cell(NULL, 0, "str", 0, 0);
MF_SetAmxStringUTF8Cell(NULL, 0, str, 0, 0);
MF_GetAmxString(NULL, 0, 0, 0);
MF_GetAmxStringLen(NULL);
MF_CopyAmxMemory(NULL, NULL, 0);
Expand Down
3 changes: 2 additions & 1 deletion dlls/fun/sdk/amxxmodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2712,6 +2712,7 @@ void MF_LogError(AMX *amx, int err, const char *fmt, ...)
// Makes sure compiler reports errors when macros are invalid
void ValidateMacros_DontCallThis_Smiley()
{
const cell str[] = { 's', 't', 'r', '\0' };
MF_BuildPathname("str", "str", 0);
MF_BuildPathnameR(NULL, 0, "%d", 0);
MF_FormatAmxString(NULL, 0, 0, NULL);
Expand All @@ -2724,7 +2725,7 @@ void ValidateMacros_DontCallThis_Smiley()
MF_FindScriptByName("str");
MF_SetAmxString(NULL, 0, "str", 0);
MF_SetAmxStringUTF8Char(NULL, 0, "str", 0, 0);
MF_SetAmxStringUTF8Cell(NULL, 0, "str", 0, 0);
MF_SetAmxStringUTF8Cell(NULL, 0, str, 0, 0);
MF_GetAmxString(NULL, 0, 0, 0);
MF_GetAmxStringLen(NULL);
MF_CopyAmxMemory(NULL, NULL, 0);
Expand Down
3 changes: 2 additions & 1 deletion dlls/geoip/sdk/amxxmodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2712,6 +2712,7 @@ void MF_LogError(AMX *amx, int err, const char *fmt, ...)
// Makes sure compiler reports errors when macros are invalid
void ValidateMacros_DontCallThis_Smiley()
{
const cell str[] = { 's', 't', 'r', '\0' };
MF_BuildPathname("str", "str", 0);
MF_BuildPathnameR(NULL, 0, "%d", 0);
MF_FormatAmxString(NULL, 0, 0, NULL);
Expand All @@ -2724,7 +2725,7 @@ void ValidateMacros_DontCallThis_Smiley()
MF_FindScriptByName("str");
MF_SetAmxString(NULL, 0, "str", 0);
MF_SetAmxStringUTF8Char(NULL, 0, "str", 0, 0);
MF_SetAmxStringUTF8Cell(NULL, 0, "str", 0, 0);
MF_SetAmxStringUTF8Cell(NULL, 0, str, 0, 0);
MF_GetAmxString(NULL, 0, 0, 0);
MF_GetAmxStringLen(NULL);
MF_CopyAmxMemory(NULL, NULL, 0);
Expand Down
13 changes: 7 additions & 6 deletions dlls/hamsandwich/msvc10/hamsandwich.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{5E393C37-22F2-4CA2-9022-6400DC582447}</ProjectGuid>
<ProjectGuid>{A8B3717F-2663-4099-AE96-AF5B7266FDA8}</ProjectGuid>
<RootNamespace>hamsandwich</RootNamespace>
<Keyword>Win32Proj</Keyword>
</PropertyGroup>
Expand Down Expand Up @@ -52,8 +52,8 @@
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>..\;..\sdk;$(METAMOD)\metamod;$(HLSDK)\common;$(HLSDK)\engine;$(HLSDK)\dlls;$(HLSDK)\pm_shared;$(HLSDK)\public;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\;..\sdk;..\..\..\public\amtl;$(METAMOD)\metamod;$(HLSDK)\common;$(HLSDK)\engine;$(HLSDK)\dlls;$(HLSDK)\pm_shared;$(HLSDK)\public;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;HAMSANDWICH_EXPORTS; HAVE_STDINT_H;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
Expand All @@ -71,13 +71,14 @@
<TargetMachine>MachineX86</TargetMachine>
</Link>
<PostBuildEvent>
<Command>copy $(OutDir)hamsandwich_amxx.dll c:\hlds\cstrike\addons\amxmodx\modules</Command>
<Command>
</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<AdditionalIncludeDirectories>..\;..\sdk;$(METAMOD)\metamod;$(HLSDK)\common;$(HLSDK)\engine;$(HLSDK)\dlls;$(HLSDK)\pm_shared;$(HLSDK)\public;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\;..\sdk;..\..\..\public\amtl;$(METAMOD)\metamod;$(HLSDK)\common;$(HLSDK)\engine;$(HLSDK)\dlls;$(HLSDK)\pm_shared;$(HLSDK)\public;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;HAMSANDWICH_EXPORTS; HAVE_STDINT_H;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<RuntimeTypeInfo>false</RuntimeTypeInfo>
<PrecompiledHeader>
Expand Down
3 changes: 2 additions & 1 deletion dlls/hamsandwich/sdk/amxxmodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2712,6 +2712,7 @@ void MF_LogError(AMX *amx, int err, const char *fmt, ...)
// Makes sure compiler reports errors when macros are invalid
void ValidateMacros_DontCallThis_Smiley()
{
const cell str[] = { 's', 't', 'r', '\0' };
MF_BuildPathname("str", "str", 0);
MF_BuildPathnameR(NULL, 0, "%d", 0);
MF_FormatAmxString(NULL, 0, 0, NULL);
Expand All @@ -2724,7 +2725,7 @@ void ValidateMacros_DontCallThis_Smiley()
MF_FindScriptByName("str");
MF_SetAmxString(NULL, 0, "str", 0);
MF_SetAmxStringUTF8Char(NULL, 0, "str", 0, 0);
MF_SetAmxStringUTF8Cell(NULL, 0, "str", 0, 0);
MF_SetAmxStringUTF8Cell(NULL, 0, str, 0, 0);
MF_GetAmxString(NULL, 0, 0, 0);
MF_GetAmxStringLen(NULL);
MF_CopyAmxMemory(NULL, NULL, 0);
Expand Down
8 changes: 4 additions & 4 deletions dlls/mysqlx/msvc10/mysqlx.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>..\;..\mysql;..\sdk;..\thread;$(METAMOD)\metamod;$(HLSDK)\common;$(HLSDK)\engine;$(HLSDK)\dlls;$(HLSDK)\public;$(MYSQL5)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>..\;..\..\..\..\mysql-5.0\include;..\mysql;..\sdk;..\thread;$(METAMOD)\metamod;$(HLSDK)\common;$(HLSDK)\engine;$(HLSDK)\dlls;$(HLSDK)\public;$(MYSQL5)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;MYSQL2_EXPORTS;SM_DEFAULT_THREADER;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
Expand All @@ -64,7 +64,7 @@
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<Link>
<AdditionalDependencies>wsock32.lib;$(MYSQL5)\lib\opt\mysqlclient.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>wsock32.lib;..\..\..\..\mysql-5.0\lib\opt\mysqlclient.lib;%(AdditionalDependencies)</AdditionalDependencies>
<IgnoreSpecificDefaultLibraries>LIBCMT;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>$(OutDir)mysql2.pdb</ProgramDatabaseFile>
Expand All @@ -75,7 +75,7 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<AdditionalIncludeDirectories>..\;..\mysql;..\sdk;..\thread;$(METAMOD)\metamod;$(HLSDK)\common;$(HLSDK)\engine;$(HLSDK)\dlls;$(HLSDK)\public;$(MYSQL5)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>..\;..\..\..\..\mysql-5.0\include;..\mysql;..\sdk;..\thread;$(METAMOD)\metamod;$(HLSDK)\common;$(HLSDK)\engine;$(HLSDK)\dlls;$(HLSDK)\public;$(MYSQL5)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;MYSQL2_EXPORTS;SM_DEFAULT_THREADER;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<RuntimeTypeInfo>false</RuntimeTypeInfo>
Expand All @@ -85,7 +85,7 @@
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<Link>
<AdditionalDependencies>wsock32.lib;$(MYSQL5)\lib\opt\mysqlclient.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>wsock32.lib;..\..\..\..\mysql-5.0\lib\opt\mysqlclient.lib;%(AdditionalDependencies)</AdditionalDependencies>
<IgnoreSpecificDefaultLibraries>%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
<GenerateDebugInformation>true</GenerateDebugInformation>
<SubSystem>Windows</SubSystem>
Expand Down
3 changes: 2 additions & 1 deletion dlls/mysqlx/sdk/amxxmodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2712,6 +2712,7 @@ void MF_LogError(AMX *amx, int err, const char *fmt, ...)
// Makes sure compiler reports errors when macros are invalid
void ValidateMacros_DontCallThis_Smiley()
{
const cell str[] = { 's', 't', 'r', '\0' };
MF_BuildPathname("str", "str", 0);
MF_BuildPathnameR(NULL, 0, "%d", 0);
MF_FormatAmxString(NULL, 0, 0, NULL);
Expand All @@ -2724,7 +2725,7 @@ void ValidateMacros_DontCallThis_Smiley()
MF_FindScriptByName("str");
MF_SetAmxString(NULL, 0, "str", 0);
MF_SetAmxStringUTF8Char(NULL, 0, "str", 0, 0);
MF_SetAmxStringUTF8Cell(NULL, 0, "str", 0, 0);
MF_SetAmxStringUTF8Cell(NULL, 0, str, 0, 0);
MF_GetAmxString(NULL, 0, 0, 0);
MF_GetAmxStringLen(NULL);
MF_CopyAmxMemory(NULL, NULL, 0);
Expand Down
3 changes: 2 additions & 1 deletion dlls/ns/sdk/amxxmodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2712,6 +2712,7 @@ void MF_LogError(AMX *amx, int err, const char *fmt, ...)
// Makes sure compiler reports errors when macros are invalid
void ValidateMacros_DontCallThis_Smiley()
{
const cell str[] = { 's', 't', 'r', '\0' };
MF_BuildPathname("str", "str", 0);
MF_BuildPathnameR(NULL, 0, "%d", 0);
MF_FormatAmxString(NULL, 0, 0, NULL);
Expand All @@ -2724,7 +2725,7 @@ void ValidateMacros_DontCallThis_Smiley()
MF_FindScriptByName("str");
MF_SetAmxString(NULL, 0, "str", 0);
MF_SetAmxStringUTF8Char(NULL, 0, "str", 0, 0);
MF_SetAmxStringUTF8Cell(NULL, 0, "str", 0, 0);
MF_SetAmxStringUTF8Cell(NULL, 0, str, 0, 0);
MF_GetAmxString(NULL, 0, 0, 0);
MF_GetAmxStringLen(NULL);
MF_CopyAmxMemory(NULL, NULL, 0);
Expand Down
3 changes: 2 additions & 1 deletion dlls/nvault/sdk/amxxmodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2712,6 +2712,7 @@ void MF_LogError(AMX *amx, int err, const char *fmt, ...)
// Makes sure compiler reports errors when macros are invalid
void ValidateMacros_DontCallThis_Smiley()
{
const cell str[] = { 's', 't', 'r', '\0' };
MF_BuildPathname("str", "str", 0);
MF_BuildPathnameR(NULL, 0, "%d", 0);
MF_FormatAmxString(NULL, 0, 0, NULL);
Expand All @@ -2724,7 +2725,7 @@ void ValidateMacros_DontCallThis_Smiley()
MF_FindScriptByName("str");
MF_SetAmxString(NULL, 0, "str", 0);
MF_SetAmxStringUTF8Char(NULL, 0, "str", 0, 0);
MF_SetAmxStringUTF8Cell(NULL, 0, "str", 0, 0);
MF_SetAmxStringUTF8Cell(NULL, 0, str, 0, 0);
MF_GetAmxString(NULL, 0, 0, 0);
MF_GetAmxStringLen(NULL);
MF_CopyAmxMemory(NULL, NULL, 0);
Expand Down
3 changes: 2 additions & 1 deletion dlls/regex/sdk/amxxmodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2712,6 +2712,7 @@ void MF_LogError(AMX *amx, int err, const char *fmt, ...)
// Makes sure compiler reports errors when macros are invalid
void ValidateMacros_DontCallThis_Smiley()
{
const cell str[] = { 's', 't', 'r', '\0' };
MF_BuildPathname("str", "str", 0);
MF_BuildPathnameR(NULL, 0, "%d", 0);
MF_FormatAmxString(NULL, 0, 0, NULL);
Expand All @@ -2724,7 +2725,7 @@ void ValidateMacros_DontCallThis_Smiley()
MF_FindScriptByName("str");
MF_SetAmxString(NULL, 0, "str", 0);
MF_SetAmxStringUTF8Char(NULL, 0, "str", 0, 0);
MF_SetAmxStringUTF8Cell(NULL, 0, "str", 0, 0);
MF_SetAmxStringUTF8Cell(NULL, 0, str, 0, 0);
MF_GetAmxString(NULL, 0, 0, 0);
MF_GetAmxStringLen(NULL);
MF_CopyAmxMemory(NULL, NULL, 0);
Expand Down
3 changes: 2 additions & 1 deletion dlls/sockets/sdk/amxxmodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2712,6 +2712,7 @@ void MF_LogError(AMX *amx, int err, const char *fmt, ...)
// Makes sure compiler reports errors when macros are invalid
void ValidateMacros_DontCallThis_Smiley()
{
const cell str[] = { 's', 't', 'r', '\0' };
MF_BuildPathname("str", "str", 0);
MF_BuildPathnameR(NULL, 0, "%d", 0);
MF_FormatAmxString(NULL, 0, 0, NULL);
Expand All @@ -2724,7 +2725,7 @@ void ValidateMacros_DontCallThis_Smiley()
MF_FindScriptByName("str");
MF_SetAmxString(NULL, 0, "str", 0);
MF_SetAmxStringUTF8Char(NULL, 0, "str", 0, 0);
MF_SetAmxStringUTF8Cell(NULL, 0, "str", 0, 0);
MF_SetAmxStringUTF8Cell(NULL, 0, str, 0, 0);
MF_GetAmxString(NULL, 0, 0, 0);
MF_GetAmxStringLen(NULL);
MF_CopyAmxMemory(NULL, NULL, 0);
Expand Down
3 changes: 2 additions & 1 deletion dlls/sqlite/sdk/amxxmodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2712,6 +2712,7 @@ void MF_LogError(AMX *amx, int err, const char *fmt, ...)
// Makes sure compiler reports errors when macros are invalid
void ValidateMacros_DontCallThis_Smiley()
{
const cell str[] = { 's', 't', 'r', '\0' };
MF_BuildPathname("str", "str", 0);
MF_BuildPathnameR(NULL, 0, "%d", 0);
MF_FormatAmxString(NULL, 0, 0, NULL);
Expand All @@ -2724,7 +2725,7 @@ void ValidateMacros_DontCallThis_Smiley()
MF_FindScriptByName("str");
MF_SetAmxString(NULL, 0, "str", 0);
MF_SetAmxStringUTF8Char(NULL, 0, "str", 0, 0);
MF_SetAmxStringUTF8Cell(NULL, 0, "str", 0, 0);
MF_SetAmxStringUTF8Cell(NULL, 0, str, 0, 0);
MF_GetAmxString(NULL, 0, 0, 0);
MF_GetAmxStringLen(NULL);
MF_CopyAmxMemory(NULL, NULL, 0);
Expand Down
Loading

0 comments on commit eeb4ecd

Please sign in to comment.