11 Commits

Author SHA1 Message Date
Julien Marrec
05c8cf503b Lint: use automated tooling to reformat C++ and CMakeLists files (#2103)
* Add initial clang tidy / clang format config files

* Clang format the entire codebase

```
find ./src -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none
find ./include -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none
find ./Web -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none
find ./dev -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none
find ./wrappers -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none
```

* Add a .cmake-format file and reformat CmakeLists.txt with it

https://github.com/cheshirekow/cmake_format

* Add a clang-format workflow


only runs on PRs, only on touched files
2022-03-31 10:51:48 -04:00
Hisham Muhammad
a867c1487e Add test to example.lua demonstrating fix. 2015-02-11 23:23:03 -02:00
Hisham Muhammad
592c65b506 Fix and cleanup APIs between Lua and C.
Fix Lua layer of get_param_index and get_fluid_param_string.
Make returns of C module more idiomatic.
Use module name as the local variable for the C module.
2015-02-11 23:21:15 -02:00
Hisham Muhammad
cb65e96709 Fall back to Lua/C if LuaJIT FFI fails. 2015-02-11 23:19:16 -02:00
Aapo Talvensaari
88fe0d3d89 Removed unneeded lines from Makefile. 2015-02-02 12:00:14 +02:00
Aapo Talvensaari
2ad75feddf Merged with the upstream, and removed pcall's. not needed anymore. Fixed Lua C-API bindings to have same funcs that FFI version has. 2015-01-30 14:51:06 +02:00
Aapo Talvensaari
dce4399e07 More fixes to RestructuredText formatting. 2015-01-30 14:24:21 +02:00
Aapo Talvensaari
4a20071b78 Fixed RestructuredText formatting. 2015-01-30 14:22:53 +02:00
Aapo Talvensaari
324cc9eecc Added more APIs, added make install + make uninstall. Added documentation. Added more examples. Added some error handling. 2015-01-30 14:17:02 +02:00
Aapo Talvensaari
62328fce1b Added License info of @craigbarnes + added detection luaL_newlib. 2015-01-29 22:00:07 +02:00
Aapo Talvensaari
c5d14ec376 Implemented Lua C API and LuaJIT Wrappers for CoolProp (high-level API currently implemented). 2015-01-29 18:26:16 +02:00