Staging
v0.8.1
https://github.com/python/cpython
Revision 8b6c4a921af6d5d0a9640211ac93d7886a55a8f3 authored by Victor Stinner on 03 December 2020, 13:01:10 UTC, committed by GitHub on 03 December 2020, 13:01:10 UTC
Write also unit tests on Py_NewRef() and Py_XNewRef().
1 parent 7e5e13d
Raw File
Tip revision: 8b6c4a921af6d5d0a9640211ac93d7886a55a8f3 authored by Victor Stinner on 03 December 2020, 13:01:10 UTC
bpo-42262: Py_NewRef() casts its argument to PyObject* (GH-23626)
Tip revision: 8b6c4a9
WinMain.c
/* Minimal main program -- everything is loaded from the library. */

#include "Python.h"

#define WIN32_LEAN_AND_MEAN
#include <windows.h>

int WINAPI wWinMain(
    HINSTANCE hInstance,      /* handle to current instance */
    HINSTANCE hPrevInstance,  /* handle to previous instance */
    LPWSTR lpCmdLine,         /* pointer to command line */
    int nCmdShow              /* show state of window */
)
{
    return Py_Main(__argc, __wargv);
}
back to top