ReactOS  0.4.14-dev-41-g31d7680
error.c File Reference
#include <schily/mconfig.h>
#include <schily/stdio.h>
#include <schily/standard.h>
#include <schily/varargs.h>
#include <schily/schily.h>
Include dependency graph for error.c:

Go to the source code of this file.

Functions

EXPORT int error (char *fmt, va_alist)
 
EXPORT int js_error (char *fmt, va_alist)
 

Function Documentation

◆ error()

EXPORT int error ( char fmt,
va_alist   
)

Definition at line 46 of file error.c.

50 {
51  va_list args;
52  int ret;
53 
54 #ifdef PROTOTYPES
55  va_start(args, fmt);
56 #else
57  va_start(args);
58 #endif
59  ret = js_fprintf(stderr, "%r", fmt, args);
60  va_end(args);
61  return (ret);
62 }
Definition: match.c:390
#define va_end(ap)
Definition: acmsvcex.h:90
char * va_list
Definition: acmsvcex.h:78
int ret
EXPORT int js_fprintf(FILE *file, char *form, va_alist)
Definition: jsprintf.c:71
#define va_start(ap, A)
Definition: acmsvcex.h:91
FILE * stderr
#define args
Definition: format.c:66
Definition: dsound.c:943

Referenced by map_error(), throw_error(), throw_generic_error(), throw_range_error(), throw_reference_error(), throw_regexp_error(), throw_syntax_error(), throw_type_error(), throw_uri_error(), and WLDAP32_ldap_result2error().

◆ js_error()

EXPORT int js_error ( char fmt,
va_alist   
)

Definition at line 72 of file error.c.

76 {
77  va_list args;
78  int ret;
79 
80 #ifdef PROTOTYPES
81  va_start(args, fmt);
82 #else
83  va_start(args);
84 #endif
85  ret = js_fprintf(stderr, "%r", fmt, args);
86  va_end(args);
87  return (ret);
88 }
Definition: match.c:390
#define va_end(ap)
Definition: acmsvcex.h:90
char * va_list
Definition: acmsvcex.h:78
int ret
EXPORT int js_fprintf(FILE *file, char *form, va_alist)
Definition: jsprintf.c:71
#define va_start(ap, A)
Definition: acmsvcex.h:91
FILE * stderr
#define args
Definition: format.c:66
Definition: dsound.c:943