These are chat archives for ChaiScript/ChaiScript
IMO, the best use is to firewall the ChaiScript parts so they only need to compile if you change what you are registering with ChaiScript
I actually split that in two parts. I didn't want to dynamically load the lib (for reasons). Now my code has the ScriptEngine.cpp, wich handles the creation of Chai and is the only file that includes and has to deal with its standard lib. Then i have a ScriptLibHelper.cpp wich deals with the registration so i dont have to recompile the stdlib every time i change something there.