Skip to content

Commit 2d9f5b3

Browse files
committed
disable template.c from the build.
1 parent 05ad061 commit 2d9f5b3

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

vs2017/stackman/stackman.vcxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@
194194
<OmitFramePointers Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">false</OmitFramePointers>
195195
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
196196
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</ExcludedFromBuild>
197-
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">false</ExcludedFromBuild>
197+
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">true</ExcludedFromBuild>
198198
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
199199
</ClCompile>
200200
</ItemGroup>

vs2017/stackman/template.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#include "..\..\src\stackman.h"
2+
3+
/*
4+
* template file to create assembly code (template.asm) to modify and add to real assembler.
5+
*/
6+
7+
void* stackman_call_templ(stackman_cb_t callback, void* context, void* stack)
8+
{
9+
// We use this variabl here for the template generation. Int the modified assembly
10+
// code, we will store the ebp (base pointer) in that place on the stack,
11+
// before storing the original unmodified stack pointer there.
12+
void* localvar = stack;
13+
return callback(context, 2, localvar);
14+
15+
}

0 commit comments

Comments
 (0)