Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-1635741: Port mmap module to multiphase initialization #19459

Merged
merged 4 commits into from
Jun 5, 2020
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
bpo-1635741: Apply code review
  • Loading branch information
corona10 committed Jun 5, 2020
commit 2d5af30055215bb84b1bc04b947651f3746ad422
10 changes: 5 additions & 5 deletions Modules/mmapmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -1525,11 +1525,11 @@ mmap_exec(PyObject *module)
return -1;
}

#define ADD_INT_MACRO(module, macro) \
do { \
if (PyModule_AddIntConstant(module, #macro, macro) < 0) { \
return -1; \
} \
#define ADD_INT_MACRO(module, constant) \
do { \
if (PyModule_AddIntConstant(module, #constant, constant) < 0) { \
return -1; \
} \
} while (0)

#ifdef PROT_EXEC
Expand Down