Method: RCSimCinterface.rcsim_get_type_vector
- Defined in:
- ext/hruby_sim/hruby_rcsim_build.c
.rcsim_get_type_vector(baseV, numV) ⇒ Object
Get a vector type.
187 188 189 190 191 192 193 194 195 196 197 198 199 |
# File 'ext/hruby_sim/hruby_rcsim_build.c', line 187 VALUE rcsim_get_type_vector(VALUE mod, VALUE baseV, VALUE numV) { /* Get the base type. */ Type base; value_to_rcsim(TypeS,baseV,base); /* Get the number of elements. */ unsigned long long num = NUM2LL(numV); /* Get the type. */ Type type = get_type_vector(base,num); /* Return it as a Ruby VALUE. */ VALUE res; rcsim_to_value(TypeS,type,res); return res; } |