diff options
author | daurnimator <quae@daurnimator.com> | 2017-04-26 18:28:30 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-04-26 18:32:07 +1000 |
commit | cc035ba6ef2ecf3884c12c2af8ad4e5fd6616f0f (patch) | |
tree | 2832ff0d9ea13b3fa2224eee24810889998f1975 /src/lcorolib.js | |
parent | 99eec25ab0ca2d4722c4d54eccc57cffe2d3b370 (diff) | |
download | fengari-cc035ba6ef2ecf3884c12c2af8ad4e5fd6616f0f.tar.gz fengari-cc035ba6ef2ecf3884c12c2af8ad4e5fd6616f0f.tar.bz2 fengari-cc035ba6ef2ecf3884c12c2af8ad4e5fd6616f0f.zip |
Export ldo.js functions from lua.js
Diffstat (limited to 'src/lcorolib.js')
-rw-r--r-- | src/lcorolib.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lcorolib.js b/src/lcorolib.js index af1a3ec..6238c6c 100644 --- a/src/lcorolib.js +++ b/src/lcorolib.js @@ -4,7 +4,6 @@ const assert = require('assert'); const lua = require('./lua.js'); const lauxlib = require('./lauxlib.js'); -const ldo = require('./ldo.js'); const lobject = require('./lobject.js'); const getco = function(L) { @@ -25,7 +24,7 @@ const auxresume = function(L, co, narg) { } lua.lua_xmove(L, co, narg); - let status = ldo.lua_resume(co, L, narg); + let status = lua.lua_resume(co, L, narg); if (status === lua.LUA_OK || status === lua.LUA_YIELD) { let nres = lua.lua_gettop(co); if (!lua.lua_checkstack(L, nres + 1)) { @@ -87,7 +86,7 @@ const luaB_cowrap = function(L) { }; const luaB_yield = function(L) { - return ldo.lua_yield(L, lua.lua_gettop(L)); + return lua.lua_yield(L, lua.lua_gettop(L)); }; const luaB_costatus = function(L) { @@ -118,7 +117,7 @@ const luaB_costatus = function(L) { }; const luaB_yieldable = function(L) { - lua.lua_pushboolean(L, ldo.lua_isyieldable(L)); + lua.lua_pushboolean(L, lua.lua_isyieldable(L)); return 1; }; |