I need to create a b2Shape*

I am working on a Lua binding for Box2D, and I think I need to create a b2Shape to pass it to Lua, since I'm sure I will need it. I've tried everything, even pasting code from the testbed, but I still can't get it to work. I am working with tolua++.
Code:
#ifndef TOLUA_DISABLE_tolua_b2Shape_b2Shape_new00
static int tolua_b2Shape_b2Shape_new00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
tolua_Error tolua_err;
if (
     !tolua_isusertable(tolua_S,1,"b2Shape",0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,2,&tolua_err)
)
  goto tolua_lerror;
else
#endif
{
  {
   const int32 k_maxCount = 1; // copied from testbed
   b2Shape* shapes[k_maxCount];
   tolua_pushusertype(tolua_S,(void*)shapes[0],"b2Shape");
  }
}
return 1;
#ifndef TOLUA_RELEASE
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE


Thanks in advance.

Original thread: https://box2d.org/forum/viewtopic.php?t=3930