diff options
author | Robin Gareus <robin@gareus.org> | 2018-08-14 23:49:43 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-08-14 23:50:11 +0200 |
commit | d9a3866299bc43c5139e8812ba8c2dbfc4ece343 (patch) | |
tree | 24b1cfea0a4b0c1bbb45e4cb496e0e48fcbbd6c1 /libs/ardour/ardour/lua_api.h | |
parent | 6434bf9dd34c3b32f6ba41f668562af0ae740c8a (diff) |
Add a locale-independent float/double format Lua method
print(ARDOUR.LuaAPI.ascii_dtostr(1.5))
Diffstat (limited to 'libs/ardour/ardour/lua_api.h')
-rw-r--r-- | libs/ardour/ardour/lua_api.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/ardour/lua_api.h b/libs/ardour/ardour/lua_api.h index fe956c6b43..7c2c309982 100644 --- a/libs/ardour/ardour/lua_api.h +++ b/libs/ardour/ardour/lua_api.h @@ -188,6 +188,10 @@ namespace ARDOUR { namespace LuaAPI { int color_to_rgba (lua_State *lua); /** + */ + std::string ascii_dtostr (const double d); + + /** * Creates a filename from a series of elements using the correct separator for filenames. * * No attempt is made to force the resulting filename to be an absolute path. |