diff options
author | Benoit Giannangeli <benoit.giannangeli@boursorama.fr> | 2017-03-16 09:45:50 +0100 |
---|---|---|
committer | Benoit Giannangeli <benoit.giannangeli@boursorama.fr> | 2017-03-16 15:10:30 +0100 |
commit | 4161f6756dadef6cd5a5c2e1e75804122e892949 (patch) | |
tree | f229a3b3fee394fe9cc2c8a977196d62c09132e7 /src/lauxlib.js | |
parent | 8388f1d2eb85bfc5fdbe1cfeb62e85a7d88403b5 (diff) | |
download | fengari-4161f6756dadef6cd5a5c2e1e75804122e892949.tar.gz fengari-4161f6756dadef6cd5a5c2e1e75804122e892949.tar.bz2 fengari-4161f6756dadef6cd5a5c2e1e75804122e892949.zip |
string.format
Diffstat (limited to 'src/lauxlib.js')
-rw-r--r-- | src/lauxlib.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lauxlib.js b/src/lauxlib.js index e3afa60..f77fe5e 100644 --- a/src/lauxlib.js +++ b/src/lauxlib.js @@ -226,6 +226,10 @@ const luaL_pushresult = function(B) { lapi.lua_pushstring(L, B.b); }; +const luaL_addchar = function(B, c) { + B.b += c; +}; + const luaL_addvalue = function(B) { let L = B.L; let s = lapi.lua_tostring(L, -1); @@ -395,6 +399,7 @@ const luaL_newlib = function(L, l) { module.exports.LUA_LOADED_TABLE = LUA_LOADED_TABLE; module.exports.luaL_Buffer = luaL_Buffer; +module.exports.luaL_addchar = luaL_addchar; module.exports.luaL_addlstring = luaL_addlstring; module.exports.luaL_addstring = luaL_addstring; module.exports.luaL_addvalue = luaL_addvalue; |