summaryrefslogtreecommitdiffhomepage
path: root/src/kernel/NeKit/CxxAbi.h
blob: 7ee04d41e06cd96f03a5dac2b419e36fe4241c3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright 2024-2026, Amlal El Mahrouss (amlal@nekernel.org)
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/ne-foss-org/nekernel

#ifndef NEKIT_CXXABI_H
#define NEKIT_CXXABI_H

#include <NeKit/Config.h>

#ifndef __NECTI__

#define kAtExitMacDestructors (128)

struct atexit_func_entry_t {
  void (*destructor_func)();
  void* obj_ptr;
  void* dso_handle;
};

typedef Kernel::UInt32 uarch_t;

namespace cxxabiv1 {
typedef Kernel::SizeT* __guard;
}

#endif  // !__NECTI__

#endif