1/* 2 * Copyright 2022 The Emscripten Authors. All rights reserved. 3 * Emscripten is available under two separate licenses, the MIT license and the 4 * University of Illinois/NCSA Open Source License. Both these licenses can be 5 * found in the LICENSE file. 6 */ 7 8// Stub implementations of atexit function. These will be included 9// in favor of the regular ones in system/lib/libc/musl/src/exit/atexit.c 10// when EXIT_RUNTIME == 0. 11 12#include <stdlib.h> 13 14int atexit(void (*function)(void)) { return 0; } 15 16int __cxa_atexit(void (*func)(void *), void *arg, void *dso) { return 0; } 17 18void __cxa_finalize(void *dso) { } 19 20