Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
emscripten-core
GitHub Repository: emscripten-core/emscripten
Path: blob/main/system/lib/libc/atexit_dummy.c
6162 views
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
14
int atexit(void (*function)(void)) { return 0; }
15
16
int __cxa_atexit(void (*func)(void *), void *arg, void *dso) { return 0; }
17
18
void __cxa_finalize(void *dso) { }
19
20