Method: RCSimCinterface.rcsim_make_print

Defined in:
ext/hruby_sim/hruby_rcsim_build.c

.rcsim_make_printObject

Creating a print C object.



525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
# File 'ext/hruby_sim/hruby_rcsim_build.c', line 525

VALUE rcsim_make_print(VALUE mod) {
    // printf("rcsim_make_print\n");
    /* Allocates the print. */
    Print print = (Print)malloc(sizeof(PrintS));
    // printf("print=%p\n",print);
    /* Set it up. */
    print->kind = PRINT;
    print->owner = NULL;
    print->num_args = 0;
    print->args = NULL;
    /* Returns the C print embedded into a ruby VALUE. */
    VALUE res;
    rcsim_to_value(PrintS,print,res);
    return res;
}