[DiscordArchive] I dont touch cpp often, does cpp have a code formatter similar to how a lot of other languages do?
[DiscordArchive] I dont touch cpp often, does cpp have a code formatter similar to how a lot of other languages do?
Archived author: Rymercyble • Posted: 2023-02-07T20:52:48.148000+00:00
Original source
its not lambda
Archived author: Rymercyble • Posted: 2023-02-07T20:52:52.045000+00:00
Original source
its that bracked on new line
Archived author: Kitzunu • Posted: 2023-02-07T20:53:21.154000+00:00
Original source
Thats what I said
Archived author: Rymercyble • Posted: 2023-02-07T20:53:48.298000+00:00
Original source
```cpp
ExecuteScript<PlayerScript>([&](PlayerScript* script) {
script->OnQuestAbandon(player, questId);
});
```
is the only option to me
Archived author: Kitzunu • Posted: 2023-02-07T20:54:00.337000+00:00
Original source
Ah you mean that
Archived author: Kitzunu • Posted: 2023-02-07T20:54:06.337000+00:00
Original source
Well, there I disagree
Archived author: Kitzunu • Posted: 2023-02-07T20:54:11.582000+00:00
Original source
But that is just personal preferences
Archived author: Bench • Posted: 2023-02-07T20:54:58.303000+00:00
Original source
```cpp
ExecuteScript<PlayerScript>([&](PlayerScript* script)
{
script->OnQuestAbandon(player, questId);
}
);
```
Archived author: Kitzunu • Posted: 2023-02-07T20:55:09.664000+00:00
Original source
This would be preferred
Archived author: Kitzunu • Posted: 2023-02-07T20:55:13.688000+00:00
Original source
Hahahaha