Sha256: 46c0fe346ceef12b4b98be2e9f40dd10b04ee0c39cfa3dc2e2905074a3338bfd

Contents?: true

Size: 579 Bytes

Versions: 80

Compression:

Stored size: 579 Bytes

Contents

#ifndef ext_help_h
#define ext_help_h

#define RAISE_NOT_NULL(T) if(T == NULL) rb_raise(rb_eArgError, "NULL found for " # T " when shouldn't be.");
#define DATA_GET(from,type,name) Data_Get_Struct(from,type,name); RAISE_NOT_NULL(name);
#define REQUIRE_TYPE(V, T) if(TYPE(V) != T) rb_raise(rb_eTypeError, "Wrong argument type for " # V " required " # T);


/* Uncomment for enabling TRACE() function. */
/*#define DEBUG*/

#ifdef DEBUG
#define TRACE()  fprintf(stderr, "TRACE: %s:%d:%s\n", __FILE__, __LINE__, __FUNCTION__)
#else
#define TRACE() 
#endif

#endif

Version data entries

80 entries across 40 versions & 2 rubygems

Version Path
oversip_p-1.0.2 ext/websocket_http_parser/ext_help.h
oversip_p-1.0.2 ext/websocket_framing_utils/ext_help.h
oversip_p-1.0.0 ext/websocket_framing_utils/ext_help.h
oversip_p-1.0.0 ext/websocket_http_parser/ext_help.h
oversip-2.0.4 ext/websocket_http_parser/ext_help.h
oversip-2.0.4 ext/websocket_framing_utils/ext_help.h
oversip-2.0.3 ext/websocket_framing_utils/ext_help.h
oversip-2.0.3 ext/websocket_http_parser/ext_help.h
oversip-2.0.2 ext/websocket_framing_utils/ext_help.h
oversip-2.0.2 ext/websocket_http_parser/ext_help.h
oversip-2.0.1 ext/websocket_framing_utils/ext_help.h
oversip-2.0.1 ext/websocket_http_parser/ext_help.h
oversip-2.0.0 ext/websocket_framing_utils/ext_help.h
oversip-2.0.0 ext/websocket_http_parser/ext_help.h
oversip-1.4.1 ext/websocket_http_parser/ext_help.h
oversip-1.4.1 ext/websocket_framing_utils/ext_help.h
oversip-1.4.0 ext/websocket_http_parser/ext_help.h
oversip-1.4.0 ext/websocket_framing_utils/ext_help.h
oversip-1.3.8 ext/websocket_http_parser/ext_help.h
oversip-1.3.8 ext/websocket_framing_utils/ext_help.h