Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] at that point the functions you call should just hand you the resources and it'd be the same as AddS

[DiscordArchive] at that point the functions you call should just hand you the resources and it'd be the same as AddS

[DiscordArchive] at that point the functions you call should just hand you the resources and it'd be the same as AddS

Pages (3): Previous 1 2 3 Next
rektbyfaith
Administrator
0
09-11-2022, 05:52 PM
#11
Archived author: <o> • Posted: 2022-09-11T17:52:42.660000+00:00
Original source

because the variables you're declaring don't need to initialize, and since your function just asks for the table there's nobody asking for them
rektbyfaith
09-11-2022, 05:52 PM #11

Archived author: <o> • Posted: 2022-09-11T17:52:42.660000+00:00
Original source

because the variables you're declaring don't need to initialize, and since your function just asks for the table there's nobody asking for them

rektbyfaith
Administrator
0
09-11-2022, 05:53 PM
#12
Archived author: Sovak • Posted: 2022-09-11T17:53:17.477000+00:00
Original source

They are global ctors, they are initialized first and LeakTests is called once at runtime
rektbyfaith
09-11-2022, 05:53 PM #12

Archived author: Sovak • Posted: 2022-09-11T17:53:17.477000+00:00
Original source

They are global ctors, they are initialized first and LeakTests is called once at runtime

rektbyfaith
Administrator
0
09-11-2022, 05:53 PM
#13
Archived author: Sovak • Posted: 2022-09-11T17:53:55.967000+00:00
Original source

And GetTests will be initialized, because it must initialize on first access
[Image: unknown.png?ex=690c37f3&is=690ae673&hm=6...ae13da0d6&]
rektbyfaith
09-11-2022, 05:53 PM #13

Archived author: Sovak • Posted: 2022-09-11T17:53:55.967000+00:00
Original source

And GetTests will be initialized, because it must initialize on first access
[Image: unknown.png?ex=690c37f3&is=690ae673&hm=6...ae13da0d6&]

rektbyfaith
Administrator
0
09-11-2022, 05:56 PM
#14
Archived author: <o> • Posted: 2022-09-11T17:56:38.973000+00:00
Original source

that just fixes init order fiasco, but there's an additional issue with it. trying to find the section in the standard
rektbyfaith
09-11-2022, 05:56 PM #14

Archived author: <o> • Posted: 2022-09-11T17:56:38.973000+00:00
Original source

that just fixes init order fiasco, but there's an additional issue with it. trying to find the section in the standard

rektbyfaith
Administrator
0
09-11-2022, 06:03 PM
#15
Archived author: <o> • Posted: 2022-09-11T18:03:16.415000+00:00
Original source

deferred dynamic initialization
rektbyfaith
09-11-2022, 06:03 PM #15

Archived author: <o> • Posted: 2022-09-11T18:03:16.415000+00:00
Original source

deferred dynamic initialization

rektbyfaith
Administrator
0
09-11-2022, 06:04 PM
#16
Archived author: <o> • Posted: 2022-09-11T18:04:29.313000+00:00
Original source

but it's been a while, it's possible you can find a way to work around that, or just refer to some other testing library
rektbyfaith
09-11-2022, 06:04 PM #16

Archived author: <o> • Posted: 2022-09-11T18:04:29.313000+00:00
Original source

but it's been a while, it's possible you can find a way to work around that, or just refer to some other testing library

rektbyfaith
Administrator
0
09-11-2022, 06:05 PM
#17
Archived author: <o> • Posted: 2022-09-11T18:05:27.976000+00:00
Original source

you can see this article to make sure, it's possible i've just forgotten why I gave up on it <https://en.cppreference.com/w/cpp/language/initialization>
rektbyfaith
09-11-2022, 06:05 PM #17

Archived author: <o> • Posted: 2022-09-11T18:05:27.976000+00:00
Original source

you can see this article to make sure, it's possible i've just forgotten why I gave up on it <https://en.cppreference.com/w/cpp/language/initialization>

rektbyfaith
Administrator
0
09-11-2022, 06:08 PM
#18
Archived author: Sovak • Posted: 2022-09-11T18:08:25.769000+00:00
Original source

Woudlnt that be a no-issue? "However, as long as anything from a translation unit is odr-used, all non-local variables whose initialization or destruction has side effects will be initialized even if they are not used in the program."
rektbyfaith
09-11-2022, 06:08 PM #18

Archived author: Sovak • Posted: 2022-09-11T18:08:25.769000+00:00
Original source

Woudlnt that be a no-issue? "However, as long as anything from a translation unit is odr-used, all non-local variables whose initialization or destruction has side effects will be initialized even if they are not used in the program."

rektbyfaith
Administrator
0
09-11-2022, 06:08 PM
#19
Archived author: Sovak • Posted: 2022-09-11T18:08:58.018000+00:00
Original source

If I call LeakTests, everything needs to be initialized, if I understood that correctly
rektbyfaith
09-11-2022, 06:08 PM #19

Archived author: Sovak • Posted: 2022-09-11T18:08:58.018000+00:00
Original source

If I call LeakTests, everything needs to be initialized, if I understood that correctly

rektbyfaith
Administrator
0
09-11-2022, 06:09 PM
#20
Archived author: <o> • Posted: 2022-09-11T18:09:17.218000+00:00
Original source

yeah, i think so, but you'll need it in every tu
rektbyfaith
09-11-2022, 06:09 PM #20

Archived author: <o> • Posted: 2022-09-11T18:09:17.218000+00:00
Original source

yeah, i think so, but you'll need it in every tu

Pages (3): Previous 1 2 3 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)