summaryrefslogtreecommitdiffstats
path: root/src/Globals.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D2020-04-031-6/+0
| | | | | | | | | The BlockID.h file was removed from Globals.h and renamed to BlockType.h (main change) The BlockInfo.h file was removed from Globals.h (main change) The ENUM_BLOCK_ID and ENUM_ITEM_ID enum names were replaced with ENUM_BLOCK_TYPE and ENUM_ITEM_TYPE (cosmetics) The various enums, such as eDimension, eDamageType and eExplosionSource were moved from BlockType.h to Defines.h, together with the helper functions for converting between them and strings (StringToDimension et al.) (minor) Many inline functions were moved from headers to their respective cpp files, so that BlockType.h could be included only into the cpp file, rather than the header. That broke our tests a bit, since they pick bits and pieces out of the main code and provide stubs for the rest; they had to be re-stubbed and re-verified. eMonsterType values are no longer tied to E_ITEM_SPAWN_EGG_META_* values
* Improved testing framework. (#4376)Mattes D2019-08-261-37/+25
|
* Deal with covered switches consistently (#4161)peterbell102018-02-051-0/+3
| | | | | | | * Fixes a number of "<function>: not all control paths return a value" warnings on MSVC. * Introduces the UNREACHABLE global macro and uses it instead of conditionally compiled switch defaults. * Move cNBTParseErrorCategory from FastNBT.h into FastNBT.cpp to prevent bad calls to message()
* Add the fmt library (#4065)peterbell102018-01-031-81/+20
| | | | | | | * Replaces AppendVPrintf with fmt::sprintf * fmt::ArgList now used as a type safe alternative to varargs. * Removed SIZE_T_FMT compatibility macros. fmt::sprintf is fully portable and supports %zu. * Adds FLOG functions to log with fmt's native formatting style.
* Replace ItemCallbacks with lambdas (#3993)peterbell102017-09-111-14/+0
|
* Revert "Replace ItemCallbacks with lambdas (#3948)"LogicParrot2017-09-021-0/+14
| | | | This reverts commit 496c337cdfa593654018c171f6a74c28272265b5.
* Replace ItemCallbacks with lambdas (#3948)peterbell102017-09-011-14/+0
|
* Add TOLUA_EXPOSITION for readabilitypeterbell102017-08-281-0/+4
|
* Remove double includes part 2 (#3890)peterbell102017-08-031-2/+5
|
* cParsedNBT: Improved error reporting (#3876)peterbell102017-07-301-2/+4
| | | | | | * cParsedNBT: Improved error reporting * Fix typos
* Tentative fix for player-limit race condition (#3862)Tiger Wang2017-07-281-1/+3
| | | | | | | | | | * Attempts to fix #2257 Derived from d233e9843148313c71fbaba96ccff660e47b07b1 * Changed player count type to int * Clarified certain actions
* Remove commentpeterbell102017-07-211-1/+0
|
* Simplify SizeCheckpeterbell102017-07-211-6/+2
|
* Remove stricmp macro in favour of NoCaseComparepeterbell102017-07-211-2/+0
|
* Remove alignment macrospeterbell102017-07-211-7/+0
|
* Remove smart pointer macrospeterbell102017-07-211-5/+0
|
* Allocate redstone component handlers upfrontpeterbell102017-07-171-4/+3
|
* NetworkSingleton: Fixed a throw warning in VS2017. (#3792)Mattes D2017-06-221-3/+3
| | | Also fixed the misleading name.
* MSVC Debug builds: Added operator new redirection to provide more info. (#3781)Mattes D2017-06-191-0/+18
|
* LuaState: Fixed VS2017's throw warnings for destructors. (#3779)Mattes D2017-06-191-2/+9
|
* Fixed RasPi builds of unit tests.Mattes D2016-08-041-6/+13
| | | | | On RasPi with gcc 4.8.2, the asserts wouldn't compile when tests were enabled. Enforced the assumption that ASSERT code is generated only in Debug builds.
* Flush immediately after each line when running tests.Mattes D2016-06-181-54/+55
|
* Removed old and wrong code from Globals.h.Mattes D2016-02-241-16/+1
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-6/+6
|
* MSVC: Reviewed warnings, disabled a useless one, re-enabled an old one.Mattes D2015-11-051-3/+1
|
* Namechange to CuberiteMattes D2015-09-251-1/+1
|
* Increase robustness of the logging subsystemtycho2015-09-151-1/+19
|
* Unified the doxy-comment format.Mattes D2015-07-311-4/+4
|
* Improved mapsTiger Wang2015-07-141-0/+2
|
* Externalized cPrefabPiecePool self-test.Mattes D2015-06-191-6/+10
|
* Merge pull request #2144 from mc-server/comparatorsAlexander Harkness2015-06-091-4/+3
|\ | | | | Redstone improvements [SEE DESC]
| * ComparatorsTiger Wang2015-06-061-4/+3
| |
* | Daemon support on Linux.Anthony Birkett2015-06-051-0/+1
| | | | | | | | Added null console log listener, avoid printf() when stdout is closed.
* | Skip unknown cflag for Apple clang & remove cSemaphoreCengiz Can2015-06-041-1/+0
|/
* Move make_unique into a namespace to avoid ADL issuestycho2015-05-161-3/+7
| | | | this prevents VS finding std::make_unique for constructors that take types from std
* Initial implementation of IniFile overloadingtycho2015-05-161-1/+1
|
* More style checking.Mattes D2015-05-091-2/+2
| | | | Spaces around some operators are checked.
* Unified cByteBuffer types.Mattes D2015-03-211-3/+7
| | | | cByteBuffer now reads and writes any of the [U]Int<N> types.
* LuaAPI: Added client TLS support for TCP links.Mattes D2015-02-121-1/+2
|
* Exported cServerHandle and cNetwork:Listen to Lua.Mattes D2015-02-041-0/+1
| | | | Also added an example to the NetworkTest plugin.
* Added newline to logged messages in the tests.Mattes D2015-01-221-8/+12
|
* Extracted Google connection testTycho2015-01-221-0/+10
|
* Initial convertion of a_Dt to std::chronoTycho2015-01-111-0/+1
| | | | also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
* Created new type cTickTime and rewrote cWorld::TickThread to use itTycho2015-01-111-0/+3
|
* Merge remote-tracking branch 'origin/master' into c++11EventsMattes D2014-12-071-6/+6
|\
| * Merged branch 'origin/master' into c++11.Mattes D2014-12-041-2/+3
| |\
| | * Added a basic stacktracing for assert and signal failures.Mattes D2014-11-291-2/+3
| | |
| * | Merge remote-tracking branch 'origin-master' into c++11Tiger Wang2014-11-261-2/+2
| | |
| * | Merged branch 'master' into c++11.Mattes D2014-10-241-2/+4
| |\|
| * | SuggestionsTiger Wang2014-10-241-2/+1
| | |
| * | Merge branch 'master' of https://github.com/mc-server/MCServerTiger Wang2014-10-201-13/+2
| |\ \
| * | | Migrated cSleep and cTimer to std::chronoTiger Wang2014-10-201-1/+0
| | | |
| * | | Migrated random generators to std::randomTiger Wang2014-10-191-0/+1
| | | |
| * | | Use std::threadTiger Wang2014-10-191-1/+1
| | | |
* | | | Moved the chrono include into Globals.Mattes D2014-10-241-0/+2
| |_|/ |/| |
* | | Removed the "conditional expression is constant" warning.Mattes D2014-10-231-2/+4
| |/ |/| | | | | MSVC spits out many of these on its own std libraries.
* | Removed obsolete tr1::shared_ptr.Mattes D2014-10-191-13/+2
|/
* Fix spacesworktycho2014-10-121-2/+2
|
* Moved a few objects to unique_ptrtycho2014-10-101-0/+7
|
* Fixed MSVC compilation.Mattes D2014-10-101-0/+3
|
* Float/Ciel: If it's going to use C++11, it might as well take advantage of itarchshift2014-10-091-20/+6
|
* Use static casts instead of C casts, add floor-cast functionsarchshift2014-10-091-4/+36
|
* Fixed UNUSED macro so that it doesn't require type knowledge.madmaxoft2014-09-261-1/+10
| | | | Introduced new UNUSED_VAR macro that is used when type knowledge is available (for local variables).
* Added first test to show the object can be createdTycho2014-09-171-0/+21
|
* Renamed LoggersTycho2014-08-121-1/+1
|
* First Implementatation of new Loggin frameworkTycho2014-08-101-1/+1
|
* Fixed a ToLua warning - operator = not supported.madmaxoft2014-08-031-2/+2
|
* Style: Normalized to no spaces before closing parenthesis.madmaxoft2014-07-211-4/+4
|
* Style: Normalized spaces after if, for and while.madmaxoft2014-07-211-1/+1
|
* Fixed style: spaces after commas.madmaxoft2014-07-191-1/+1
|
* Fixed spaces around single-line comments.madmaxoft2014-07-171-11/+11
| | | | There should be at least two spaces in front and one space after //-style comments.
* Fixed basic whitespace problems.madmaxoft2014-07-171-5/+5
| | | | Indenting by spaces and alignment by spaces, as well as trailing whitespace on non-empty lines.
* Merge remote-tracking branch 'origin/master' into potionsarchshift2014-07-101-3/+18
|\ | | | | | | | | | | Conflicts: src/Entities/Player.cpp src/Entities/ProjectileEntity.cpp
| * Fixed size_t printfing under MinGW.Mattes D2014-06-301-3/+18
| |
* | Moved Effects.h to EntityEffects.h, added initial implarchshift2014-06-171-1/+0
|/
* Test failures break into MSVC debugger.madmaxoft2014-05-301-0/+6
|
* Test failures are reported verbosely and into the debug console on Win.madmaxoft2014-05-301-2/+18
|
* Fixed test globals to work with precompiled headersTycho2014-05-271-12/+36
|
* Fixed MSVC2013 compilation.Mattes D2014-05-011-1/+1
|
* Fixed C++11 check for SharedPtr.madmaxoft2014-04-251-1/+1
|
* Added shared_ptr handling for C++03 mode.madmaxoft2014-04-251-3/+7
|
* Declared a SharedPtr that hopefully resolves on all platforms.madmaxoft2014-04-241-1/+9
| | | | MSVC2008 has it in std::tr1, all the others in std.
* Initial C++ SSL classes.madmaxoft2014-04-241-2/+4
|
* Fixed a few MSVC type warnings.Mattes D2014-04-031-0/+3
|
* Fixed non-virtual destructors warnings.madmaxoft2014-03-281-2/+8
|
* Added Noreturn attribtes to a couple of functions and made a missing noreturn an errorTycho2014-03-141-2/+9
|
* Added NORETURN macroTycho2014-03-141-0/+4
|
* Fixed xofts issuesTycho2014-03-141-1/+2
|
* Fixed commaTycho2014-03-121-2/+2
|
* Added additional macros to support the MSVC size_t format and changed all formats to use the macrosTycho2014-03-121-0/+4
|
* Merge branch 'Werror' into warningsTycho2014-03-121-1/+14
|\ | | | | | | | | Conflicts: src/Globals.h
| * Fixed printf format compatabiltyTycho2014-03-121-0/+5
| |
| * Merge branch 'master' into WerrorTycho2014-03-121-0/+8
| |\ | | | | | | | | | | | | Conflicts: src/Generating/PieceGenerator.cpp
| | * Unified Vector classesandrew2014-03-111-0/+8
| | |
| * | Fixed comments an assertTycho2014-03-121-1/+1
| | |
* | | Added macros to follow format string checking through wrappersTycho2014-03-111-0/+4
|/ /
* | Fixed test assertsTycho2014-03-101-3/+4
| |
* | Be more parinoid about int sizesTycho2014-03-091-2/+16
| |
* | Globals.h is now warnings free again.Tycho2014-03-091-2/+0
|/ | | | Also turned off Wpadded as it is indicates potental performance issues rather than potential bugs
* g_BlockXXX => cBlockInfo::XXXandrew2014-03-011-0/+1
|
* Thread safe cMap managerandrew2014-02-201-3/+3
|
* Manual merge (Fixed conflicts)andrew2014-02-201-0/+10
|
* Merge branch 'master' into GeneratingBenchmark2Tycho2014-01-261-0/+3
|\ | | | | | | | | | | Conflicts: src/Blocks/BlockRail.h src/World.h
| * PolarSSL is fully used for 1.3.2 protocol encryption.madmaxoft2014-01-231-0/+3
| |
* | Added support for overide in c++11 supporting varients of gcc/clangTycho2014-01-261-2/+4
|/
* Move biome definition to separate filesBill Derouin2014-01-091-0/+1
|
* Disabled an unneeded MSVC warning.madmaxoft2014-01-071-4/+7
| | | | Also sorted the enabled warnings by their numerical code for easier searching..
* Disabled the type conversion MSVC warning.madmaxoft2014-01-061-1/+3
| | | | It was hitting way too many false positives.
* Changed the release version of ASSERT.Diusrex2014-01-051-1/+1
| | | | This was so a variable only used in ASSERT statements will not give a warning about not being used.
* Making all of the useful level 4 warnings be active.Diusrex2014-01-051-1/+13
|
* Removed offending tr1/memory header inclusion.madmaxoft2013-12-181-3/+0
| | | | We already use <memory> at line 160, this was a double include, additionally causing problems (#424).
* Exported E_EFFECTS_<Effect> to lua. Forgot to commit Globals.h.STRWarrior2013-12-141-0/+1
|
* Fixed a load of issues, clang autodetection works now.Alexander Harkness2013-11-271-1/+0
| | | | | | | | This fixes issue #210. This also removes the disableasm option, so it would be wise to remove it from any scripts that use it. I also removed a random line in the middle of globals.h, why was it there?
* Moved source to srcAlexander Harkness2013-11-241-0/+227