Sha256: cb682a7745488ceaaa6c31d32e6e17114dcaf0472cafe2eb9033bacfa55af6e4
Contents?: true
Size: 1.11 KB
Versions: 13
Compression:
Stored size: 1.11 KB
Contents
#include <ruby.h> VALUE mRocketAMF; VALUE mRocketAMFExt; VALUE cDeserializer; VALUE cSerializer; VALUE cStringIO; VALUE cDate; VALUE cDateTime; VALUE sym_class_name; VALUE sym_members; VALUE sym_externalizable; VALUE sym_dynamic; void Init_rocket_amf_deserializer(); void Init_rocket_amf_serializer(); void Init_rocket_amf_fast_class_mapping(); void Init_rocket_amf_remoting(); void Init_rocketamf_ext() { mRocketAMF = rb_define_module("RocketAMF"); mRocketAMFExt = rb_define_module_under(mRocketAMF, "Ext"); // Set up classes Init_rocket_amf_deserializer(); Init_rocket_amf_serializer(); Init_rocket_amf_fast_class_mapping(); Init_rocket_amf_remoting(); // Get refs to commonly used symbols and ids cStringIO = rb_const_get(rb_cObject, rb_intern("StringIO")); cDate = rb_const_get(rb_cObject, rb_intern("Date")); cDateTime = rb_const_get(rb_cObject, rb_intern("DateTime")); sym_class_name = ID2SYM(rb_intern("class_name")); sym_members = ID2SYM(rb_intern("members")); sym_externalizable = ID2SYM(rb_intern("externalizable")); sym_dynamic = ID2SYM(rb_intern("dynamic")); }
Version data entries
13 entries across 13 versions & 4 rubygems