openalbridge/errlib.h
author smxx
Mon, 15 Mar 2010 11:53:32 +0000
changeset 2999 30c4d62cd0c3
parent 2529 51e5df1c8462
permissions -rw-r--r--
Engine: * Fixed reading localized strings longer than 255 bytes * Fixed weapon tooltip to stay inside visible area in short ammo menus * Allow maps to use their own map.lua file outside training mode (needs multiplayer testing) * Added example script to Basketball map showing clan scores * Fixed Shotgun and Bazooka trainings * Removed basketball script example

/*
 
 module: errlib.h
 
 purpose: definitions of function sin errlib.c
 
 reference: Stevens, Unix network programming (2ed), p.922
 
 */

#ifndef _ERRLIB_H
#define _ERRLIB_H

#include "globals.h"

#ifdef __CPLUSPLUS
extern "C" {
#endif 
        
        extern int daemon_proc;
        
        void err_msg (const char *fmt, ...);
        void err_quit (const char *fmt, ...);
        void err_ret (const char *fmt, ...);
        void err_sys (const char *fmt, ...);
        void err_dump (const char *fmt, ...);
        
#ifdef __CPLUSPLUS
}
#endif

#endif /*_ERRLIB_H*/

/*
 suggested error string ( PROG ) LEVEL - TEXT : ERRNO
 
            errno?  closeprog? log level 
 err_msg      no       no       LOG_INFO 
 err_quit     no     exit(1)    LOG_ERR 
 err_ret      si       no       LOG_INFO 
 err_sys      si     exit(1)    LOG_ERR 
 err_dump     si    abort( )    LOG_ERR
 */