Commit Graph
18 Commits
Author SHA1 Message Date
Martin Natano 0b0787f344 Replace COMPILE_ASSERT() with standard static_assert() 2023-04-20 11:21:29 +02:00
Brian Phlipotandteejusb 4a6b1a743c Enable more compiler warnings and treat them as errors. 2023-02-02 11:54:17 -08:00
Michael SundqvistandMartin Natano 0cba3579de Remove global "using namespace std;" declarations, use "std::" prefixes on all std elements
Fix whitespace changes
2022-07-31 22:14:38 +02:00
Prcuvu 123b01930e Force Lua to be compiled as C++ code when using MSVC
The setjmp/longjmp error handling mechanism may fail with Microsoft C++ since
they utilize the same stack-unwinding mechanism with C++ exception handling.
Lua calling longjmp after luaD_rawrunprotected returns causes unpredictable
behaviour. On Windows x64 build, this causes lua_error to crash the whole
StepMania program.

Lua provides the same macros to utilize C++ throw/catch, which effectively
solve the problem. Just specify Lua library as C++ code to enable them.

Reference: https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/longjmp
2019-12-22 18:38:07 +08:00
teejusb 7e3789b131 Integrate C++11 branch into 5_1-new 2019-06-22 12:35:38 -07:00
Kyzentun dcf819d297 Moved all sanity checking for OptionRowHandlerLua to a separate function so that a malformed row does not crash StepMania, and instead prints an error to the log file, and creates a row that does nothing. Added AllowAnything arg to CheckEnum. 2014-06-25 12:08:57 -06:00
Devin J. Pohly 10d872db3f Accept old-style raw values for enum parameters
These will still be checked to ensure they are valid members of the
enumeration, so it's not as ugly or dangerous as it used to be.
2014-02-23 16:39:10 -05:00
Devin J. Pohly 5051d85288 Add lowercase strings to Lua enum reverse table
Step one toward compatibility with case-insensitive legacy command
syntax.
2014-02-23 15:01:34 -05:00
Jason Felds 25c3c7d4f1 Change our auto_ptr's to unique_ptr's.
auto_ptr is deprecated in c++11.
2013-05-04 14:11:47 -04:00
Jason Felds ba59dd1656 The big NULL replacement party part 2.
This may take a bit. Trying to do this by operator/command.
2013-05-03 23:11:42 -04:00
Jason Felds b0b87501eb More scrolling friendliness.
Fair warning: mass recompile of many files.
2011-06-19 20:19:09 -04:00
Jason Felds 4bb0b28fc8 Good old warning fixes...how I missed thee. 2011-06-12 03:30:57 -04:00
Jason Felds b17536b649 [sm130futures] Windows builds fine w/Lua location.
Linux side needs to be updated...but still more to move.
2011-05-04 21:23:09 -04:00
Jason Felds a085d0d1da Line endings...be normalized! 2011-03-17 01:47:30 -04:00
Jason Felds 1a1ff7d701 Give @briefs to all namespaces.
This will force recompilation of all files.
2011-02-19 12:09:03 -05:00
Jason Felds 6f276da825 Document all FOREACH loops. 2011-02-18 21:16:11 -05:00
AJ Kelly 3e51544930 Initial commit. 2010-01-26 21:00:30 -06:00
Devin J. Pohly 80057f53cd smsvn -> ssc-hg glue: rearrange directory structure 2013-06-10 15:38:43 -04:00