summaryrefslogtreecommitdiff
path: root/tests/src/Interop/NativeCallable/NativeCallableDll.cpp
blob: 6ba63ff875b8bf3a0cf150834a625efc951eb47e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#include <xplatform.h> 

typedef int (*CALLBACKADDPROC)(int n);

extern "C" DLL_EXPORT int WINAPI CallManagedAdd(CALLBACKADDPROC pCallbackAddProc, int n)
{
    return pCallbackAddProc(n);
}