Skip to content
Snippets Groups Projects
Commit 7c1fc1c5 authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

wplua: table_to_properties: use luaL_tolstring to do string conversions

The advantage is that luaL_tolstring behaves the same as the native lua
tostring() function, while lua_tostring() does not. In particular, boolean
values are converted properly to "true" and "false" now, while they were
not converted with lua_tostring()

Add a unit test too
parent 7336c271
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