1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00
elinks/src/ecmascript/timer.h

29 lines
421 B
C
Raw Normal View History

2021-12-01 13:27:50 -05:00
#ifndef EL__ECMASCRIPT_TIMER_H
#define EL__ECMASCRIPT_TIMER_H
#include <map>
struct timer;
extern std::map<struct timer *, bool> map_timer;
inline void
add_to_map_timer(struct timer *timer)
{
map_timer[timer] = true;
}
inline void
del_from_map_timer(struct timer *timer)
{
map_timer.erase(timer);
}
inline bool
found_in_map_timer(struct timer *timer)
2021-12-01 13:27:50 -05:00
{
return map_timer.find(timer) != map_timer.end();
}
#endif