diff options
author | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
commit | 15740faf9fe9fe4be08965098bbf2947e096aeeb (patch) | |
tree | a730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/Scripting/WinRTHelper.h |
Diffstat (limited to 'Runtime/Scripting/WinRTHelper.h')
-rw-r--r-- | Runtime/Scripting/WinRTHelper.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Runtime/Scripting/WinRTHelper.h b/Runtime/Scripting/WinRTHelper.h new file mode 100644 index 0000000..2fef260 --- /dev/null +++ b/Runtime/Scripting/WinRTHelper.h @@ -0,0 +1,29 @@ +#ifndef WINRTHELPER_H +#define WINRTHELPER_H + +#if UNITY_WINRT + +# if UNITY_METRO_VS2012 +# if defined(__arm__) +# include "build/temp/MetroSupport/metroARM/AutoGeneratedFuncDefs.h" +# else +# include "build/temp/MetroSupport/metro32/AutoGeneratedFuncDefs.h" +# endif +# elif UNITY_METRO_VS2013 +# if defined(__arm__) +# include "build/temp/MetroSupport/metroBlueARM/AutoGeneratedFuncDefs.h" +# else +# include "build/temp/MetroSupport/metroBlue32/AutoGeneratedFuncDefs.h" +# endif +# elif UNITY_WP8 +# include "build/temp/WP8Support/AutoGeneratedFuncDefs.h" +# endif +#endif + + +inline long long* GetWinRTFuncDefsPointers() +{ + return (long long*)UnityEngineDelegates::FunctionDefsDictionary::GetPointers(); +} + +#endif |