Skip to content
Snippets Groups Projects
Commit 51464c7d authored by Vladislav Shpilevoy's avatar Vladislav Shpilevoy
Browse files

uuid: introduce and use luaL_pushuuidstr()

The function safely pushes tt_uuid as a string on a Lua stack.
Safety means that it does not use tt_uuid_str() which stores the
result into the global static buffer and can not be used in Lua
context.

The static buffer is not safe to use in Lua and Lua C because
during a static string push onto a Lua stack the GC might be
started and it can spoil the buffer.

Part of #6259
parent 77da64c3
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment