mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Replace PP with direct printing
This commit is contained in:
parent
de77fe8ade
commit
3b74cc4a41
18 changed files with 110 additions and 109 deletions
|
@ -28,6 +28,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "util/pointedthing.h"
|
||||
#include "inventory.h"
|
||||
#include "inventorymanager.h"
|
||||
#include "irrlicht_changes/printing.h"
|
||||
|
||||
#define WRAP_LUAERROR(e, detail) \
|
||||
LuaError(std::string(__FUNCTION__) + ": " + (e).what() + ". " detail)
|
||||
|
@ -238,7 +239,7 @@ bool ScriptApiItem::getItemCallback(const char *name, const char *callbackname,
|
|||
// Report error and clean up
|
||||
errorstream << "Item \"" << name << "\" not defined";
|
||||
if (p)
|
||||
errorstream << " at position " << PP(*p);
|
||||
errorstream << " at position " << *p;
|
||||
errorstream << std::endl;
|
||||
lua_pop(L, 1);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue