Closed hmenke closed 5 years ago
This PR will enable loading of Lua chunks from streams. With help of this one can write programs which take Lua code via stdin, i.e. ./a.out < script.lua. The following code illustrates this.
./a.out < script.lua
#include <selene.h> #include <iostream> int main() { sel::State L{true}; L.Load(std::cin); // ... }
Selene has been abandoned and sol2 is much better anyway, so I'm closing this.
This PR will enable loading of Lua chunks from streams. With help of this one can write programs which take Lua code via stdin, i.e.
./a.out < script.lua
. The following code illustrates this.