Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] from what i understood so far, it should be `__stdcall` in 335a

[DiscordArchive] from what i understood so far, it should be `__stdcall` in 335a

[DiscordArchive] from what i understood so far, it should be `__stdcall` in 335a

rektbyfaith
Administrator
0
06-16-2023, 09:51 PM
#1
Archived author: 4bhorrent • Posted: 2023-06-16T21:51:34.757000+00:00
Original source

from what i understood so far, it should be `__stdcall` in 335a
this is because it can't be `__fastcall`, because no registers are used to pass arguments... only the stack (see following screenshot #1)
and it shouldn't be `__cdecl`, because it's not the function who calls `CVar__Register`, which restores the stack at the end, but it is `CVar__Register` itself (see following screenshot #2)

did i deduce this correctly?
rektbyfaith
06-16-2023, 09:51 PM #1

Archived author: 4bhorrent • Posted: 2023-06-16T21:51:34.757000+00:00
Original source

from what i understood so far, it should be `__stdcall` in 335a
this is because it can't be `__fastcall`, because no registers are used to pass arguments... only the stack (see following screenshot #1)
and it shouldn't be `__cdecl`, because it's not the function who calls `CVar__Register`, which restores the stack at the end, but it is `CVar__Register` itself (see following screenshot #2)

did i deduce this correctly?

rektbyfaith
Administrator
0
06-16-2023, 09:53 PM
#2
Archived author: 4bhorrent • Posted: 2023-06-16T21:53:47.130000+00:00
Original source

screenshot #1
values are only pushed, not passed by register
[Image: image.png?ex=690c702b&is=690b1eab&hm=d3b...d5ddab603&]
rektbyfaith
06-16-2023, 09:53 PM #2

Archived author: 4bhorrent • Posted: 2023-06-16T21:53:47.130000+00:00
Original source

screenshot #1
values are only pushed, not passed by register
[Image: image.png?ex=690c702b&is=690b1eab&hm=d3b...d5ddab603&]

rektbyfaith
Administrator
0
06-16-2023, 09:54 PM
#3
Archived author: 4bhorrent • Posted: 2023-06-16T21:54:37.578000+00:00
Original source

screenshot #2
`CVar__Register` itself does the stack cleanup just before returning
[Image: image.png?ex=690c705d&is=690b1edd&hm=118...68bdee718&]
rektbyfaith
06-16-2023, 09:54 PM #3

Archived author: 4bhorrent • Posted: 2023-06-16T21:54:37.578000+00:00
Original source

screenshot #2
`CVar__Register` itself does the stack cleanup just before returning
[Image: image.png?ex=690c705d&is=690b1edd&hm=118...68bdee718&]

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)