Skip to content

Commit d63dc4f

Browse files
committed
Sync dictobject.c with CPython
1 parent 528a3dd commit d63dc4f

File tree

3 files changed

+5552
-103
lines changed

3 files changed

+5552
-103
lines changed

graalpython/com.oracle.graal.python.cext/src/capi.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,6 @@ typedef struct {
130130
CAPI_BUILTINS
131131
#undef BUILTIN
132132

133-
#define CALL_WITH_STRING(STRING, RESULT_TYPE, ERR_RESULT, NAME, ...) \
134-
PyObject* string = PyUnicode_FromString(STRING); \
135-
if (string == NULL) { \
136-
return ERR_RESULT; \
137-
} \
138-
RESULT_TYPE result = NAME(__VA_ARGS__); \
139-
Py_DECREF(string); \
140-
return result;
141-
142133
#define GET_SLOT_SPECIAL(OBJ, RECEIVER, NAME, SPECIAL) ( points_to_py_handle_space(OBJ) ? GraalPy_get_##RECEIVER##_##NAME((RECEIVER*) (OBJ)) : ((RECEIVER*) (OBJ))->SPECIAL )
143134

144135
PyAPI_DATA(uint32_t) Py_Truffle_Options;

0 commit comments

Comments
 (0)