1
0
forked from mirrors/0ad

debug_assert now displays function name also. this neatly avoids the need for __func__ in every debug_warn, which also breaks on Linux. all such constructions have been removed.

This was SVN commit r2968.
This commit is contained in:
janwas
2005-10-19 06:29:55 +00:00
parent 02341916dc
commit a953a8ef57
28 changed files with 120 additions and 117 deletions
+3 -3
View File
@@ -108,7 +108,7 @@ int LDR_Register(LoadFunc func, void* param, const wchar_t* description,
{
if(state != REGISTERING)
{
debug_warn(__func__": not called between LDR_(Begin|End)Register - why?!");
debug_warn("not called between LDR_(Begin|End)Register - why?!");
// warn here instead of relying on the caller to CHECK_ERR because
// there will be lots of call sites spread around.
return -1;
@@ -128,7 +128,7 @@ int LDR_EndRegistering()
return -1;
if(load_requests.empty())
debug_warn(__func__": no LoadRequests queued");
debug_warn("no LoadRequests queued");
state = FIRST_LOAD;
estimated_duration_tally = 0.0;
@@ -317,7 +317,7 @@ int LDR_NonprogressiveLoad()
switch(ret)
{
case 0:
debug_warn(__func__": No load in progress");
debug_warn("No load in progress");
return 0; // success
case LDR_ALL_FINISHED:
return 0; // success