fn: exprtk.load
[contents]

Contents

Syntax

The syntax for exprtk.load calls is:

f++:  
exprtk.load(name)

n++:  
@exprtk.load(name)

Description

The exprtk.load function is for loading compiled ExprTk expressions, it takes a single parameter which should be the name of the compiled ExprTk expression to load. See here for more information about ExprTk.

Note: If you need to repeatedly evaluate the same expression multiple times in a row it is faster to load it, otherwise the expression needs to be found in a map every time it is evaluated.

f++ example

Example of exprtk.load being used with f++:

exprtk.add_package(basicio_package)
exprtk.compile(hello, println('hello, world!'))
exprtk.compile(mars, println('hello, mars!'))
exprtk.load(hello)
exprtk.eval

n++ example

Example of exprtk.load being used with n++:

@exprtk.add_package(basicio_package)
@exprtk.compile(hello, println('hello, world!'))
@exprtk.compile(mars, println('hello, mars!'))
@exprtk.load(hello)
@exprtk.eval