lunarmodules / luafilesystem

LuaFileSystem is a Lua library developed to complement the set of functions related to file systems offered by the standard Lua distribution.
https://lunarmodules.github.io/luafilesystem/
MIT License
914 stars 292 forks source link

Explicitly cast void * pointers - allows code to build cleanly as C++ #165

Closed cuavas closed 11 months ago

cuavas commented 1 year ago

This allows LuaFileSystem to build cleanly as C++ without needing -fpermissive or similar. This is useful when Lua itself is built as C++ to support unwinding locals when raising errors from Lua CFunctions implemented in C++.

hishamhm commented 11 months ago

@cuavas Thank you! merged!