SHARE
TWEET

BuzzTableOpenNested example 2

a guest Apr 21st, 2019 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.    // tbl
  2.    BuzzTableOpen(t_vm, "tbl");
  3.    // [0]
  4.    BuzzTableOpenNested(t_vm, 0);
  5.    // .val
  6.    LOG << "table[0].val = " << buzzobj_getint(BuzzTableGet(t_vm, "val")) << std::endl;
  7.    // close [0]
  8.    BuzzTableCloseNested(t_vm);
  9.    // [1]
  10.    BuzzTableOpenNested(t_vm, 1);
  11.    // .val
  12.    LOG << "table[0].val = " << buzzobj_getint(BuzzTableGet(t_vm, "val")) << std::endl;
  13.    // close [1]
  14.    BuzzTableCloseNested(t_vm);
  15.    // [2]
  16.    BuzzTableOpenNested(t_vm, 2);
  17.    // .val
  18.    LOG << "table[0].val = " << buzzobj_getint(BuzzTableGet(t_vm, "val")) << std::endl;
  19.    // close [2]
  20.    BuzzTableCloseNested(t_vm);
  21.    // close table
  22.    BuzzTableClose(t_vm);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top