diff options
Diffstat (limited to 'src/common/timer.c')
-rw-r--r-- | src/common/timer.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/common/timer.c b/src/common/timer.c index c7be0ab8f..6c228839c 100644 --- a/src/common/timer.c +++ b/src/common/timer.c @@ -270,10 +270,12 @@ int add_timer_interval(unsigned int tick, TimerFunc func, int id, int data, int return tid; } -int delete_timer(int id, TimerFunc func) +//int delete_timer(int id, TimerFunc func) +int delete_timer_sub(int id, TimerFunc func, const char* file, int line) { if (id <= 0 || id >= timer_data_num) { - ShowError("delete_timer error : no such timer %d (%08x(%s))\n", id, (int)func, search_timer_func_list(func)); + //ShowError("delete_timer error : no such timer %d (%08x(%s))\n", id, (int)func, search_timer_func_list(func)); + ShowError("delete_timer error : no such timer %d (%08x(%s)), invoked from %s:%d\n", id, (int)func, search_timer_func_list(func), file, line); return -1; } if (timer_data[id].func != func) { |