windows: Provide a definition for MP_ALWAYSINLINE.

pull/8926/head
stijn 2022-06-23 16:01:12 +02:00 zatwierdzone przez Damien George
rodzic 5e20dcf925
commit c4adeb2e08
2 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -135,6 +135,7 @@ typedef long mp_off_t;
#define MP_ENDIANNESS_LITTLE (1)
#define NORETURN __declspec(noreturn)
#define MP_NOINLINE __declspec(noinline)
#define MP_ALWAYSINLINE __forceinline
#define MP_LIKELY(x) (x)
#define MP_UNLIKELY(x) (x)
#define MICROPY_PORT_CONSTANTS { MP_ROM_QSTR(MP_QSTR_dummy), MP_ROM_PTR(NULL) }

Wyświetl plik

@ -256,6 +256,7 @@ typedef long mp_off_t;
#define NORETURN __declspec(noreturn)
#define MP_WEAK
#define MP_NOINLINE __declspec(noinline)
#define MP_ALWAYSINLINE __forceinline
#define MP_LIKELY(x) (x)
#define MP_UNLIKELY(x) (x)
#define MICROPY_PORT_CONSTANTS { MP_ROM_QSTR(MP_QSTR_dummy), MP_ROM_PTR(NULL) } // can't have zero-sized array