Regession from #5085
```
[ 79%] Building CXX object Tools/ProtoProxy/CMakeFiles/ProtoProxy.dir/Connection.cpp.o
/home/bond/dev/cuberite/Tools/ProtoProxy/Connection.cpp:337:26: error: use of undeclared identifier 'AF_INET'
m_ServerSocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
^
/home/bond/dev/cuberite/Tools/ProtoProxy/Connection.cpp:337:35: error: use of undeclared identifier 'SOCK_STREAM'
m_ServerSocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
^
/home/bond/dev/cuberite/Tools/ProtoProxy/Connection.cpp:337:48: error: use of undeclared identifier 'IPPROTO_TCP'
m_ServerSocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
^
/home/bond/dev/cuberite/Tools/ProtoProxy/Connection.cpp:342:2: error: unknown type name 'sockaddr_in'
sockaddr_in localhost;
^
/home/bond/dev/cuberite/Tools/ProtoProxy/Connection.cpp:343:25: error: use of undeclared identifier 'AF_INET'
localhost.sin_family = AF_INET;
^
/home/bond/dev/cuberite/Tools/ProtoProxy/Connection.cpp:346:53: error: unknown type name 'sockaddr'
if (connect(m_ServerSocket, reinterpret_cast<const sockaddr *>(&localhost), sizeof(localhost)) != 0)
^
/home/bond/dev/cuberite/Tools/ProtoProxy/Connection.cpp:362:29: error: use of undeclared identifier 'recv'
int res = static_cast<int>(recv(m_ServerSocket, Buffer, sizeof(Buffer), 0)); // recv returns int on windows, ssize_t on linux
^
/home/bond/dev/cuberite/Tools/ProtoProxy/Connection.cpp:402:29: error: use of undeclared identifier 'recv'
int res = static_cast<int>(recv(m_ClientSocket, Buffer, sizeof(Buffer), 0)); // recv returns int on Windows, ssize_t on Linux
^
/home/bond/dev/cuberite/Tools/ProtoProxy/Connection.cpp:451:29: error: use of undeclared identifier 'send'
int res = static_cast<int>(send(a_Socket, reinterpret_cast<const char *>(a_Data.data()), a_Data.size(), 0)); // Windows uses int for a_Size, Linux uses size_t; but Windows doesn't complain. Return type is int on Windows and ssize_t on Linux
^
[ 79%] Building CXX object CMakeFiles/Cuberite.dir/Unity/unity_38_cxx.cxx.o
9 errors generated.
```
This adds a Macro which simply identifies the function and class name for error messages. Examples taken from the MojangAPI class [Choosen because I worked on that]
processing is done during compile time. Should be cross compatible
- Fixed Login Breaking bug
- Auth and MojangAPI now use UrlClient
- fixed bug in UrlClient where one letter was missing in the HTTP Header
- added function to verify Urls from config files and error handling on bad Urls in config for Auth
Replaced them with fmt::format calls, including changes to the format strings. Also changed the format strings to use FMT_STRING, so that the format is checked compile-time against the arguments.
Also fixed code-style violations already present in the code.
* Handle newlines during read and write in cIniFile
When reading the ini file, replace \n with newline. When writing,
replace the newline with \n.
* Use ReplaceString instead of regex in IniFile
* Update cIniFile description
* Removed duplicate variable
* Revert "Removed duplicate variable"
This reverts commit de11bac047.
* Removed duplicate variable
Now without plugin changes
---------
Co-authored-by: x12xx12x <44411062+12xx12@users.noreply.github.com>
* Removed C style arrays from the BlockEntity folder
* Update for loops with size_t where there are no item grids involved
* Fixed some casts in BrewingstandEntity.cpp
---------
Co-authored-by: bibo38 <bibo38@github.com>
Co-authored-by: x12xx12x <44411062+12xx12@users.noreply.github.com>
* Placing certain blocks on top of upside down slabs and stairs
* remove TODO
* fix style errors
* IsAnyStairType helper function
* Block placement on stairs and slabs
* Instead of chunks ticking player objects, and the player object in turn ticking its client handle, let the world tick the client handles. This means we no longer need to maintain a special-case for chunks that shouldn't be ticking, but still need to process players. Partially reverts to the state before 054a89dd.
* adding build* to gitignore and tags for ctags
* Notation Changes
* Adding & Parser
* Avoid crash when & as first character
* Looking for @ in the rest of the project
* Formating style
* Modifying test to reflect new behaviours
* Adding a check for the first part
* fixup! Adding & Parser
style changes
* Update APIDesk.lua
* Update src/CompositeChat.cpp
Co-authored-by: x12xx12x <44411062+12xx12@users.noreply.github.com>
* explaination on the antishlash with ampersand
* adding old deprecated formating
* Update src/CompositeChat.cpp
Co-authored-by: x12xx12x <44411062+12xx12@users.noreply.github.com>
* Update src/CompositeChat.cpp
* Update src/CompositeChat.cpp
Co-authored-by: Debucquoy <debucqquoy.anthony@gmail.com>
Co-authored-by: x12xx12x <44411062+12xx12@users.noreply.github.com>