zephyr/arch
Stephanos Ioannidis ae0437d2df arch: posix: Declare _posix_zephyr_main with int return type
This commit updates the `_posix_zephyr_main` declaration to use the
return type of `int` instead of `void` when `CONFIG_CPP_MAIN=y` (i.e.
C++-compliant main() support is enabled) so that Zephyr applications
defining their main() in a C++ source file can make use of the proper
main() definition of `int main(void)` as required by the C++ standard.

Note that the forward declaration of `_posix_zephyr_main` is required
if and only if the main() is defined in a C++ source file (i.e. when
`CONFIG_CPP_MAIN=y`).

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2022-11-05 16:41:45 +09:00
..
arc arch: arc: Convert to CONFIG_MP_MAX_NUM_CPUS 2022-11-02 14:35:32 -04:00
arm smp: Move arrays to use CONFIG_MP_MAX_NUM_CPUS 2022-10-17 14:40:12 +09:00
arm64 arm64: Add comment that `arch_curr_cpu` and `get_cpu` must be synced 2022-11-02 16:08:00 -05:00
common include: add missing irq.h include 2022-10-11 18:05:17 +02:00
mips include: types: remove ulong_t 2022-09-06 18:16:33 +02:00
nios2
posix arch: posix: Declare _posix_zephyr_main with int return type 2022-11-05 16:41:45 +09:00
riscv Revert "riscv: PMP-based stack guard is incompatible with stack sentinel" 2022-10-25 10:53:34 +02:00
sparc
x86 drivers: pcie: reintroduce support for I/O BARs 2022-11-01 15:22:31 -04:00
xtensa include: add missing zephyr/irq.h include 2022-10-17 22:57:39 +09:00
CMakeLists.txt
Kconfig arch/xtensa: Enable code relocation 2022-11-03 10:25:07 +01:00