Ejemplo n.º 1
0
 /**
  * Set the number of times the task should run.
  * @param L Pointer to the Lua state.
  * @return Number of elements being passed back through the Lua stack.
  */
 static int set_ntimes(lua_State *L)
 {
     Hello *p = luaW_check<Hello>(L, 1);
     p->set_ntimes(luaL_checknumber(L, 2));
     return 0;
 }