Comments (3)
I forgot, for main()
we can also change from a enum class
for error_code
to a plain enum
, though we'd loose the mandatory scoping. There are workarounds to make something that looks like a scoped enum
though, with namespaces or inconstructible classes.
from sh3redux.
I think it makes sense to just static_cast.
I like this as well. As good as having an sh_main
function would be, that would probably just confuse anyone else looking to join, as they'd have to go 'function hunting'
For die() we should perhaps stick a @warn in the documentation that destructors will not be run on objects on the stack. We can also replace assert() with a custom variant, which also tries to log the assertion, and perhaps supports stuff like continuing anyways, for purpose of debugging.
I agree. For the most part though, die doesn't necessarily need to run destructors for stack objects, as the shit has already hit the fan. As for the custom assert(), I feel later in development this will make debugging a LOT easier.
from sh3redux.
As for the custom assert(), I feel later in development this will make debugging a LOT easier.
I'm working on it. I'll open a pull request after I got some sleep and cleaned it up.
This issue is done though.
from sh3redux.
Related Issues (20)
- Useless warnings from gcc -Weffc++ HOT 4
- Provide default constructors and move constructors to source (*.cpp) files.
- overly careful numeric casts HOT 2
- Consider libfmt for Log HOT 5
- Create bugs folder to outline found compiler bugs HOT 4
- Reverse Engineering file formats HOT 15
- CMake include_directories Error HOT 17
- file format about silent hill2 HOT 3
- Problems with building( Cmake and Sdl2) HOT 29
- Include required libraries in repository HOT 4
- Switch from `cmake` to `premake5` HOT 7
- Game logic hardcoding HOT 3
- Is this project still active? HOT 1
- Could you talk about konami's skeletal animation format by Reverse Engineering?
- Breakdown swizzled 8bpp paletted texture data HOT 3
- Random questions to the developers HOT 2
- Weird input into vfile HOT 3
- Arc extraction produces wong output HOT 2
- CMakesLists.txt problems HOT 2
- Generic resource loading HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sh3redux.