Calling ChaiScript function defined in another script file

34 Views Asked by At

How to call a ChaiScript function defined in a script file (e.g. "functions.chai")?

I have appended use("functions.chai") in the header of my calling script file but it did not work.

I would appreciate your help as I'm starting to have many functions within the same script which is not very convenient.

1

There are 1 best solutions below

0
ASB On

The relative path to the included file was not correct. Hence, one should write something like use("C:\path\to\included\file.chai").