Hid timer function parameters in a macro (#3311)

This commit is contained in:
Lemongrass3110
2018-07-15 23:17:15 +02:00
committed by GitHub
parent ec1d6d28d7
commit c4d7dc76d3
49 changed files with 160 additions and 207 deletions

View File

@@ -33,7 +33,7 @@
#include "script.hpp" // script_config
#include "storage.hpp"
static int check_connect_char_server(int tid, unsigned int tick, int id, intptr_t data);
static TIMER_FUNC(check_connect_char_server);
static struct eri *auth_db_ers; //For reutilizing player login structures.
static DBMap* auth_db; // int id -> struct auth_node*
@@ -799,7 +799,7 @@ int auth_db_cleanup_sub(DBKey key, DBData *data, va_list ap) {
return 0;
}
int auth_db_cleanup(int tid, unsigned int tick, int id, intptr_t data) {
TIMER_FUNC(auth_db_cleanup){
chrif_check(0);
auth_db->foreach(auth_db, auth_db_cleanup_sub);
return 0;
@@ -1849,7 +1849,7 @@ int chrif_parse(int fd) {
}
// unused
int send_usercount_tochar(int tid, unsigned int tick, int id, intptr_t data) {
TIMER_FUNC(send_usercount_tochar){
chrif_check(-1);
WFIFOHEAD(char_fd,4);
@@ -1896,7 +1896,7 @@ int send_users_tochar(void) {
* timerFunction
* Chk the connection to char server, (if it down)
*------------------------------------------*/
static int check_connect_char_server(int tid, unsigned int tick, int id, intptr_t data) {
static TIMER_FUNC(check_connect_char_server){
static int displayed = 0;
if ( char_fd <= 0 || session[char_fd] == NULL ) {
if ( !displayed ) {