Loading...
Searching...
No Matches
cxx_options.h
1/*
2 * Copyright (c) 2026 Raspberry Pi (Trading) Ltd.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef _PICO_CXX_OPTIONS_H
8#define _PICO_CXX_OPTIONS_H
9
10#include "pico.h"
11
12// PICO_CONFIG: PICO_CXX_DISABLE_ALLOCATION_OVERRIDES, Disable SDK overrides of C++ new/delete operators, type=bool, default=0, advanced=true, group=pico_cxx_options
13
14// PICO_CONFIG: PICO_CXX_THREAD_SAFE_STATIC_INIT, Enable thread/IRQ safe locks for C++ static initializers, type=bool, default=1 when using pico_multicore, advanced=true, group=pico_cxx_options
15#ifndef PICO_CXX_THREAD_SAFE_STATIC_INIT
16#define PICO_CXX_THREAD_SAFE_STATIC_INIT LIB_PICO_MULTICORE
17#endif
18
19#endif
20
21