- I wish, MSVC flagged struct params to variadic functions properly…

XCode reported these as errors.
This commit is contained in:
Christoph Oelckers 2020-09-14 22:44:21 +02:00
parent 70a6fbe9be
commit 8a7502c00d

View file

@ -847,7 +847,7 @@ static int32_t defsparser(scriptfile *script)
script->filename, scriptfile_getlinum(script,texturetokptr));
if (texstatus == -(3<<8))
Printf("Error: \"%s\" has more than one tile, in tilefromtexture definition near line %s:%d\n",
fn, script->filename, scriptfile_getlinum(script,texturetokptr));
fn.GetChars(), script->filename, scriptfile_getlinum(script,texturetokptr));
if (texstatus < 0)
break;
@ -986,7 +986,7 @@ static int32_t defsparser(scriptfile *script)
script->filename, scriptfile_getlinum(script,cmdtokptr));
if (texstatus == -(3<<8))
Printf("Error: \"%s\" has more than one tile, in importtile definition near line %s:%d\n",
fn, script->filename, scriptfile_getlinum(script,cmdtokptr));
fn.GetChars(), script->filename, scriptfile_getlinum(script,cmdtokptr));
if (texstatus < 0)
break;
@ -2648,7 +2648,7 @@ static int32_t defsparser(scriptfile *script)
FileReader fil = fileSystem.OpenFileReader(fn);
if (!fil.isOpen())
{
Printf("Error: basepalette: Failed opening \"%s\" on line %s:%d\n", fn,
Printf("Error: basepalette: Failed opening \"%s\" on line %s:%d\n", fn.GetChars(),
script->filename, scriptfile_getlinum(script,cmdtokptr));
break;
}
@ -2820,7 +2820,7 @@ static int32_t defsparser(scriptfile *script)
FileReader fil = fileSystem.OpenFileReader(fn);
if (!fil.isOpen())
{
Printf("Error: palookup: Failed opening \"%s\" on line %s:%d\n", fn,
Printf("Error: palookup: Failed opening \"%s\" on line %s:%d\n", fn.GetChars(),
script->filename, scriptfile_getlinum(script,cmdtokptr));
break;
}
@ -3105,7 +3105,7 @@ static int32_t defsparser(scriptfile *script)
FileReader fil = fileSystem.OpenFileReader(fn);
if (!fil.isOpen())
{
Printf("Error: blendtable: Failed opening \"%s\" on line %s:%d\n", fn,
Printf("Error: blendtable: Failed opening \"%s\" on line %s:%d\n", fn.GetChars(),
script->filename, scriptfile_getlinum(script,cmdtokptr));
break;
}