mirror of
https://codeberg.org/KeybadeBlox/JSRF-Decompilation.git
synced 2026-02-20 02:07:02 +03:00
Minor correction to Decompiling C++
Destructors are not directly registered for exit, but instead called by a tiny function that's registered.
This commit is contained in:
parent
44a8d704ef
commit
ddc10a878c
1 changed files with 2 additions and 2 deletions
|
|
@ -122,8 +122,8 @@ lifetime of the program (e.g. global variables or static local variables) have
|
|||
special treatment, having their constructor run before `main()` and their
|
||||
destructor run on program exit. In an Xbox game specifically, the `_cinit()`
|
||||
function called by `mainXapiStartup()` walks a list of function pointers, with
|
||||
each called function calling an object's constructor and registering its
|
||||
destructor with `atexit()`.
|
||||
each called function calling an object's constructor and registering a tiny
|
||||
function with `atexit()` that calls the destructor.
|
||||
|
||||
Virtual methods are methods that can be overridden on child classes. They're
|
||||
not called directly, but instead called through a hidden first member that
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue