summaryrefslogtreecommitdiff
path: root/src/common/scope_exit.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* scope_exit: Make constexprGravatar FearlessTobi2024-02-191-20/+46
| | | | | Allows the use of the macro in constexpr-contexts. Also avoids some potential problems when nesting braces inside it.
* chore: make yuzu REUSE compliantGravatar Andrea Pappacoda2022-07-271-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [REUSE] is a specification that aims at making file copyright information consistent, so that it can be both human and machine readable. It basically requires that all files have a header containing copyright and licensing information. When this isn't possible, like when dealing with binary assets, generated files or embedded third-party dependencies, it is permitted to insert copyright information in the `.reuse/dep5` file. Oh, and it also requires that all the licenses used in the project are present in the `LICENSES` folder, that's why the diff is so huge. This can be done automatically with `reuse download --all`. The `reuse` tool also contains a handy subcommand that analyzes the project and tells whether or not the project is (still) compliant, `reuse lint`. Following REUSE has a few advantages over the current approach: - Copyright information is easy to access for users / downstream - Files like `dist/license.md` do not need to exist anymore, as `.reuse/dep5` is used instead - `reuse lint` makes it easy to ensure that copyright information of files like binary assets / images is always accurate and up to date To add copyright information of files that didn't have it I looked up who committed what and when, for each file. As yuzu contributors do not have to sign a CLA or similar I couldn't assume that copyright ownership was of the "yuzu Emulator Project", so I used the name and/or email of the commit author instead. [REUSE]: https://reuse.software Follow-up to 01cf05bc75b1e47beb08937439f3ed9339e7b254
* common: scope_exit: Add a cancellable ScopeExit macro.Gravatar bunnei2021-02-051-0/+6
|
* video_core: Resolve more variable shadowing scenarios pt.3Gravatar Lioncash2020-12-051-1/+1
| | | | | Cleans out the rest of the occurrences of variable shadowing and makes any further occurrences of shadowing compiler errors.
* common: scope_exit: Implement mechanism for canceling a scope exit.Gravatar bunnei2020-04-171-1/+8
|
* common/scope_exit: Replace std::move with std::forward in ScopeExit()Gravatar Lioncash2019-04-111-1/+1
| | | | | | The template type here is actually a forwarding reference, not an rvalue reference in this case, so it's more appropriate to use std::forward to preserve the value category of the type being moved.
* Format: Run the new clang format on everythingGravatar James Rowe2018-01-201-1/+1
|
* Manually tweak source formatting and then re-run clang-formatGravatar Yuri Kunde Schlesner2016-09-181-2/+1
|
* Sources: Run clang-format on everything.Gravatar Emmanuel Gil Peyrot2016-09-181-9/+14
|
* Asserts: break/crash program, fit to style guide; log.h->assert.hGravatar archshift2015-02-101-0/+1
| | | | | | | Involves making asserts use printf instead of the log functions (log functions are asynchronous and, as such, the log won't be printed in time) As such, the log type argument was removed (printf obviously can't use it, and it's made obsolete by the file and line printing) Also removed some GEKKO cruft.
* Common: Fix SCOPE_EXIT to actually create unique identifiers.Gravatar Yuri Kunde Schlesner2015-01-301-1/+3
|
* License changeGravatar purpasmart962014-12-201-1/+1
|
* Add SCOPE_EXIT macro to conveniently execute cleanup actionsGravatar Yuri Kunde Schlesner2014-12-131-0/+37