Help for this page

Select Code to Download


  1. or download this
        *    *Assignments*
    
    ...
    
             The subroutine for the assignment variant of an operator is
             required only to return the result of the operation.
    
  2. or download this
    void overload_add_eq(pTHX_ SV * a, SV * b, SV * third) {
         dXSARGS;
    ...
         mpz_add_ui(*(INT2PTR(mpz_t *, SvIVX(SvRV(a)))), *(INT2PTR(mpz_t *
    +, SvIVX(SvRV(a)))), SvUV(b));
         XSRETURN(1);
    }
    
  3. or download this
    void
    overload_add_eq (a, b, third)
    ...
            CODE:
            overload_add_eq (aTHX_ a, b, third);
            XSRETURN(1);