Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'main' into isolate-winsound
  • Loading branch information
erlend-aasland authored Apr 9, 2023
commit f1a5c41bdc6964e296dc392c986a3b15e524aff5
10 changes: 3 additions & 7 deletions PC/winsound.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,19 +204,13 @@ static struct PyMethodDef sound_methods[] =

#define ADD_DEFINE(CONST) do { \
if (PyModule_AddIntConstant(module, #CONST, CONST) < 0) { \
goto error; \
return -1; \
} \
} while (0)

static int
exec_module(PyObject *module)
{
PyObject *dict;
dict = PyModule_GetDict(module);
if (dict == NULL) {
return -1;
}

ADD_DEFINE(SND_ASYNC);
ADD_DEFINE(SND_NODEFAULT);
ADD_DEFINE(SND_NOSTOP);
Expand All @@ -234,6 +228,8 @@ exec_module(PyObject *module)
ADD_DEFINE(MB_ICONHAND);
ADD_DEFINE(MB_ICONQUESTION);

#undef ADD_DEFINE

return 0;
}

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.