Skip to content

Commit

Permalink
Define PY_SSIZE_T_CLEAN to allow # in arg parsing just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
zorgiepoo committed Aug 22, 2024
1 parent d52cc5d commit 9fa3ae6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Bit Slicer/pythonlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
#pragma clang diagnostic ignored "-Wreserved-id-macro"
#pragma clang diagnostic ignored "-Wcast-align"

// Need to include this in order for # arg parsing to work:
// https://docs.python.org/3/c-api/arg.html#arg-parsing
#define PY_SSIZE_T_CLEAN
#import <Python/Python.h>
#import <Python/structmember.h>

Expand Down

0 comments on commit 9fa3ae6

Please sign in to comment.