Method: RCSimCinterface.rcsim_set_owner

Defined in:
ext/hruby_sim/hruby_rcsim_build.c

.rcsim_set_owner(objV, ownerV) ⇒ Object

Sets the owner for a C simulation object.


1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
# File 'ext/hruby_sim/hruby_rcsim_build.c', line 1545

VALUE rcsim_set_owner(VALUE mod, VALUE objV, VALUE ownerV) {
    /* Get the C object from the Ruby value. */
    Object obj;
    value_to_rcsim(ObjectS,objV,obj);
    /* Get the C owner from the Ruby value. */
    Object owner;
    value_to_rcsim(ObjectS,ownerV,owner);
    /* Set the owner. */
    obj->owner = owner;
    return objV;
}