Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] how do you know that the stuff written in the condition string is cpp? looks more like lua or someth

[DiscordArchive] how do you know that the stuff written in the condition string is cpp? looks more like lua or someth

[DiscordArchive] how do you know that the stuff written in the condition string is cpp? looks more like lua or someth

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

how do you know that the stuff written in the condition string is cpp? looks more like lua or something to me.
shouldn't it be written with the variable and arrow before it otherwise, if it were cpp that's going to be executed?
rektbyfaith
06-09-2023, 09:37 PM #1

Archived author: 4bhorrent • Posted: 2023-06-09T21:37:16.840000+00:00
Original source

how do you know that the stuff written in the condition string is cpp? looks more like lua or something to me.
shouldn't it be written with the variable and arrow before it otherwise, if it were cpp that's going to be executed?

rektbyfaith
Administrator
0
06-09-2023, 09:45 PM
#2
Archived author: bandysc • Posted: 2023-06-09T21:45:36.611000+00:00
Original source

1. This is just an input to function "SErrDisplayAssert" - display an assert, not check an assert
2. The if is exactly the condition
3. Function HasDoodadFileIds is a method in CMapObj class, so the assert expression doesn't need any arrows, it is referencing the object fields
4. Evaluating the expression would be insanely expensive compared to what it does
5. That's exactly how I would imagine an assert after compilation
rektbyfaith
06-09-2023, 09:45 PM #2

Archived author: bandysc • Posted: 2023-06-09T21:45:36.611000+00:00
Original source

1. This is just an input to function "SErrDisplayAssert" - display an assert, not check an assert
2. The if is exactly the condition
3. Function HasDoodadFileIds is a method in CMapObj class, so the assert expression doesn't need any arrows, it is referencing the object fields
4. Evaluating the expression would be insanely expensive compared to what it does
5. That's exactly how I would imagine an assert after compilation

Recently Browsing
 
Recently Browsing