SimpleKernel 1.17.0
Loading...
Searching...
No Matches
kstd_libcxx.h File Reference
#include <cstdint>
Include dependency graph for kstd_libcxx.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

auto CppInit () -> void
 构造 c++ 全局对象
 
auto CppDeInit () -> void
 析构 c++ 全局对象
 

Function Documentation

◆ CppDeInit()

auto CppDeInit ( ) -> void

析构 c++ 全局对象

c++ 全局对象析构

Definition at line 230 of file kstd_libcxx.cpp.

230 {
231 // 调用析构函数
232 std::for_each(&__fini_array_start, &__fini_array_end,
233 [](function_t func) { (func)(); });
234}
function_t __fini_array_end
全局析构函数函数指针终点地址
void(*)() function_t
全局构造函数函数指针
function_t __fini_array_start
全局析构函数函数指针起点地址

◆ CppInit()

auto CppInit ( ) -> void

构造 c++ 全局对象

c++ 全局对象构造

Definition at line 221 of file kstd_libcxx.cpp.

221 {
222 // 调用构造函数
223 std::for_each(&__init_array_start, &__init_array_end,
224 [](function_t func) { (func)(); });
225}
function_t __init_array_start
全局构造函数函数指针起点地址
function_t __init_array_end
全局构造函数函数指针终点地址
Here is the caller graph for this function: