openalbridge/errlib.h
author unc0rr
Mon, 12 Oct 2009 16:44:30 +0000
changeset 2428 6800f8aa0184
parent 2421 a4b039ee2eb0
child 2443 fececcbc2189
permissions -rw-r--r--
Huge Smaxx patch with some fixes by me: - support for non power of two textures - modelview matrix calculation optimizations - health effect when picking up health crates or using vampirism - rc plane training time trial - fix visual gear drawing position (might require recheck) - gamepad support - reordered options in frontend - updated binding options (subcaptions, descriptions and localizable names) - cfg-dir parameter for frontend (allows teams/settings to sit on a usb flash drive for example) - icons for chatroom user list
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2418
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
     1
/*
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
     2
 
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
     3
 module: errlib.h
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
     4
 
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
     5
 purpose: definitions of function sin errlib.c
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
     6
 
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
     7
 reference: Stevens, Unix network programming (2ed), p.922
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
     8
 
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
     9
 */
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    10
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    11
#ifndef _ERRLIB_H
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    12
#define _ERRLIB_H
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    13
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    14
#include "globals.h"
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    15
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    16
#ifdef __CPLUSPLUS
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    17
extern "C" {
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    18
#endif 
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    19
        
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    20
        extern int daemon_proc;
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    21
        
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    22
        void err_msg (const char *fmt, ...);
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    23
        void err_quit (const char *fmt, ...);
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    24
        void err_ret (const char *fmt, ...);
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    25
        void err_sys (const char *fmt, ...);
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    26
        void err_dump (const char *fmt, ...);
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    27
        
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    28
#ifdef __CPLUSPLUS
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    29
}
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    30
#endif
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    31
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    32
#endif /*_ERRLIB_H*/
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    33
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    34
/*
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    35
 suggested error string ( PROG ) LEVEL - TEXT : ERRNO
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    36
 
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    37
            errno?  closeprog? log level 
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    38
 err_msg      no       no       LOG_INFO 
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    39
 err_quit     no     exit(1)    LOG_ERR 
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    40
 err_ret      si       no       LOG_INFO 
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    41
 err_sys      si     exit(1)    LOG_ERR 
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    42
 err_dump     si    abort( )    LOG_ERR
538a777f90c4 fix build and partially moves messages to errlib
koda
parents:
diff changeset
    43
 */