| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ce0545f commit 6eb59ec
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -546,10 +546,17 @@ internal unsafe static extern void | |||
| 546 | 546 | internal unsafe static extern IntPtr | |
| 547 | 547 | PyGILState_GetThisThreadState(); | |
| 548 | 548 | ||
| 549 | + #if (PYTHON32 || PYTHON33 || PYTHON34) | ||
| 550 | + [DllImport(Runtime.dll, CallingConvention=CallingConvention.Cdecl, | ||
| 551 | + ExactSpelling=true, CharSet=CharSet.Ansi)] | ||
| 552 | + public unsafe static extern int | ||
| 553 | + Py_Main(int argc, [MarshalAsAttribute(UnmanagedType.LPArray, ArraySubType=UnmanagedType.LPWStr)] string[] argv); | ||
| 554 | + #else | ||
| 549 | 555 | [DllImport(Runtime.dll, CallingConvention=CallingConvention.Cdecl, | |
| 550 | 556 | ExactSpelling=true, CharSet=CharSet.Ansi)] | |
| 551 | 557 | public unsafe static extern int | |
| 552 | 558 | Py_Main(int argc, string[] argv); | |
| 559 | + #endif | ||
| 553 | 560 | ||
| 554 | 561 | [DllImport(Runtime.dll, CallingConvention=CallingConvention.Cdecl, | |
| 555 | 562 | ExactSpelling=true, CharSet=CharSet.Ansi)] | |
| Back | FazBrowse Home | New Git URL |
0 commit comments