Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. TOID(struct my_root) root = POBJ_ROOT(pop);
  2. TX_BEGIN(pop) {
  3.   TX_ADD(root);
  4.   TOID(struct rectangle) rect = TX_NEW(struct rectangle);
  5.   D_RW(rect)->x = 5;
  6.   D_RW(rect)->y = 10;
  7.   D_RW(root)->rect = rect;
  8. } TX_END
  9.  
  10. int p = area_calc(D_RO(root)->rect);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement