Nasal/CppBind: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 53: Line 53:
{
{
   Test* t = new Test();
   Test* t = new Test();
  // do some initial state setup
   t->x = 100;
   t->x = 100;
   t->y = 200;
   t->y = 200;
   t->z = 300;
   t->z = 300;
  // and now return the new object to Nasal
   return ctx.to_nasal( *t );
   return ctx.to_nasal( *t );
}
}

Navigation menu