Ruby  2.5.0dev(2017-10-22revision60238)
Macros | Functions
syslog.c File Reference
#include "ruby/ruby.h"
#include "ruby/util.h"
#include <syslog.h>

Go to the source code of this file.

Macros

#define define_syslog_shortcut_method(pri, name)
 
#define rb_define_syslog_option(c)   rb_define_const(mSyslogOption, #c, INT2NUM(c))
 
#define rb_define_syslog_facility(c)   rb_define_const(mSyslogFacility, #c, INT2NUM(c))
 
#define rb_define_syslog_level(c, m)
 

Functions

void Init_syslog (void)
 

Macro Definition Documentation

◆ define_syslog_shortcut_method

#define define_syslog_shortcut_method (   pri,
  name 
)
Value:
static VALUE mSyslog_##name(int argc, VALUE *argv, VALUE self) \
{ \
syslog_write((pri), argc, argv); \
\
return self; \
}
int argc
Definition: ruby.c:187
unsigned long VALUE
Definition: ruby.h:85
const char * name
Definition: nkf.c:208
char ** argv
Definition: ruby.c:188

Definition at line 347 of file syslog.c.

◆ rb_define_syslog_facility

#define rb_define_syslog_facility (   c)    rb_define_const(mSyslogFacility, #c, INT2NUM(c))

◆ rb_define_syslog_level

#define rb_define_syslog_level (   c,
 
)
Value:
rb_define_const(mSyslogLevel, #c, INT2NUM(c)); \
rb_define_module_function(mSyslog, #m, mSyslog_##m, -1)
#define INT2NUM(x)
Definition: ruby.h:1538
void rb_define_const(VALUE, const char *, VALUE)
Definition: variable.c:2691

◆ rb_define_syslog_option

#define rb_define_syslog_option (   c)    rb_define_const(mSyslogOption, #c, INT2NUM(c))

Function Documentation

◆ Init_syslog()

void Init_syslog ( void  )

Definition at line 421 of file syslog.c.