タグ

ブックマーク / pgl.yoyo.org (1)

  • Lua: 3.7: Functions and Types

    [-?, +?, -] int lua_yield (lua_State *L, int nresults); Yields a coroutine. This function should only be called as the return expression of a C function, as follows: return lua_yield (L, nresults); When a C function calls lua_yield in that way, the running coroutine suspends its execution, and the call to lua_resume that started this coroutine returns. The parameter nresults is the number of value

    kiyo_hiko
    kiyo_hiko 2011/12/30
    「int lua_somefunction (lua_State *L, int nresults);」
  • 1