Sha256: 5f4225e9aa432d189095ab6718c5277ea0e5b5ea1d675f8bdb17e54c63f46d73

Contents?: true

Size: 293 Bytes

Versions: 2

Compression:

Stored size: 293 Bytes

Contents

/* optional input strings - can be NULL, need special conversions */
%typemap(in) const char *inStrOrNull {
  $1 = ($input == Qnil) ? NULL : STR2CSTR($input);
}
/* returning char* or NULL, need special conversions */
%typemap(out) char *{
  $result = ($1 == NULL) ? Qnil : rb_str_new2($1);
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
redlander-0.2.2 ext/redland-types.i
redlander-0.2.1 ext/redland-types.i