Changeset 2745


Ignore:
Timestamp:
Jun 18, 2013, 1:56:33 PM (6 years ago)
Author:
sam
Message:

base: assertion errors now mention source location.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lol/base/assert.h

    r2568 r2745  
    103103
    104104#define LOL_ERROR_1(t) \
    105     Log::Error("assertion failure: " #t "\n")
     105    Log::Error("assertion at %s:%d: %s\n", __FILE__, __LINE__, #t)
    106106
    107107#define LOL_ERROR_2(t, s) \
    108     Log::Error("assertion failure: %s\n", s)
     108    Log::Error("assertion at %s:%d: %s\n", __FILE__, __LINE__, s)
    109109
    110110#define LOL_ERROR_3(t, s, ...) \
    111     Log::Error("assertion failure: " s "\n", __VA_ARGS__)
     111    Log::Error("assertion at %s:%d: " s "\n", __FILE__, __LINE__, __VA_ARGS__)
    112112
    113113#if FINAL_RELEASE
Note: See TracChangeset for help on using the changeset viewer.