Skip to content

Commit 523d95e

Browse files
committed
Switch warnings to mp_rom_error_text_t
1 parent 32b6ac7 commit 523d95e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

shared-module/warnings/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void common_hal_warnings_warn(const char *message, const mp_obj_type_t *category
4848
mp_printf(MICROPY_ERROR_PRINTER, "%q: %s\n", category->name, message);
4949
}
5050

51-
void warnings_warn(const mp_obj_type_t *category, const compressed_string_t *message, ...) {
51+
void warnings_warn(const mp_obj_type_t *category, mp_rom_error_text_t message, ...) {
5252
warnings_action_t action = MP_STATE_THREAD(warnings_action);
5353
if (action == WARNINGS_IGNORE) {
5454
return;

shared-module/warnings/__init__.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@
2626

2727
#pragma once
2828

29-
void warnings_warn(const mp_obj_type_t *category, const compressed_string_t *message, ...);
29+
void warnings_warn(const mp_obj_type_t *category, mp_rom_error_text_t message, ...);

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