Skip to content

Commit b2752b3

Browse files
authored
Merge pull request adafruit#10134 from eightycc/issue-10132
Add missing PY_FUNCTION_ATTRS and PY_REVERSE_SPECIAL_METHODS
2 parents 146279a + 4be3a3b commit b2752b3

File tree

6 files changed

+14
-0
lines changed

6 files changed

+14
-0
lines changed

ports/broadcom/mpconfigport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#define MICROPY_PY_SYS_PLATFORM "BROADCOM"
1616
#define MICROPY_PY_BUILTINS_NOTIMPLEMENTED (1)
1717
#define MICROPY_PY_FUNCTION_ATTRS (1)
18+
#define MICROPY_PY_REVERSE_SPECIAL_METHODS (1)
1819
#if BCM_VERSION == 2837 || BCM_VERSION == 2711
1920
#define MICROPY_OBJ_REPR (MICROPY_OBJ_REPR_A)
2021
#elif BCM_VERSION == 2835

ports/cxd56/mpconfigport.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
#define MICROPY_PY_SYS_PLATFORM "CXD56"
1010

11+
#define MICROPY_PY_FUNCTION_ATTRS (1)
12+
#define MICROPY_PY_REVERSE_SPECIAL_METHODS (1)
13+
1114
// 64kiB stack
1215
#define CIRCUITPY_DEFAULT_STACK_SIZE (0x10000)
1316

ports/espressif/mpconfigport.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717

1818
#define CIRCUITPY_DIGITALIO_HAVE_INPUT_ONLY (1)
1919

20+
#define MICROPY_PY_FUNCTION_ATTRS (1)
21+
#define MICROPY_PY_REVERSE_SPECIAL_METHODS (1)
22+
2023
#include "py/circuitpy_mpconfig.h"
2124

2225
#define MICROPY_NLR_SETJMP (1)

ports/litex/mpconfigport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
#define CIRCUITPY_INTERNAL_NVM_SIZE (0)
1111
#define MICROPY_NLR_THUMB (0)
12+
#define MICROPY_PY_FUNCTION_ATTRS (1)
1213
#define MICROPY_PY_REVERSE_SPECIAL_METHODS (1)
1314

1415
#include "py/circuitpy_mpconfig.h"

ports/raspberrypi/mpconfigport.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
#define MICROPY_PY_SYS_PLATFORM "RP2350"
1717
#endif
1818

19+
#define MICROPY_PY_FUNCTION_ATTRS (1)
20+
#define MICROPY_PY_REVERSE_SPECIAL_METHODS (1)
21+
1922
// Setting a non-default value also requires a non-default link.ld
2023
#ifndef CIRCUITPY_FIRMWARE_SIZE
2124
#define CIRCUITPY_FIRMWARE_SIZE (1020 * 1024)

ports/renode/mpconfigport.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
#define MICROPY_PY_SYS_PLATFORM "Renode"
1010

11+
#define MICROPY_PY_FUNCTION_ATTRS (1)
12+
#define MICROPY_PY_REVERSE_SPECIAL_METHODS (1)
13+
1114
#define MICROPY_USE_INTERNAL_PRINTF (1)
1215

1316
// This also includes mpconfigboard.h.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy