view paper/src/pop2test.cbc @ 88:04a6b05666c1

update
author anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Fri, 05 Feb 2021 14:00:28 +0900
parents ae00fdac2e99
children a93c2401753b
line wrap: on
line source

#interface "String.h"
#interface "Stack.h"

#impl "StackTest.h" for "StackTestImpl3.h"

/* 略 */

__code pop2Test(struct StackTestImpl3* stackTest, struct Stack* stack, __code next(...)) {
    goto stack->pop2(pop2Test1);
}


__code pop2Test1(struct StackTestImpl3* stackTest, union Data* data, union Data* data1, struct Stack* stack, __code next(...)) {
    String* str = (String*)data;
    String* str2 = (String*)data1;

    printf("%d\n", str->size);
    printf("%d\n", str2->size);
    goto next(...);
}