summaryrefslogtreecommitdiff
path: root/pjlib/src/pj++/pj++.cpp
blob: 1a41ec325b154b193a3df90fdba118b6500e0887 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* $Header: /pjproject/pjlib/src/pj++/pj++.cpp 4     4/17/05 11:59a Bennylp $ */
#include <pj++/scanner.hpp>
#include <pj++/timer.hpp>
#include <pj/except.h>

void PJ_Scanner::syntax_error_handler_throw_pj(pj_scanner *)
{
    PJ_THROW( PJ_Scanner::SYNTAX_ERROR );
}

void PJ_Timer_Entry::timer_heap_callback(pj_timer_heap_t *, pj_timer_entry *e)
{
    PJ_Timer_Entry *entry = static_cast<PJ_Timer_Entry*>(e);
    entry->on_timeout();
}