Next: Interpreter context, Previous: Introduction, Up: Top [Contents][Index]
All functions are made available in cnrun
module namespace, by
means of standard require
. Thus, local N = require("cnrun"); M.some_function(args)
.
On error, all functions return two arguments: first a nil
,
and second, an error message describing what went wrong (a string).
On success, the first returned argument will be 1 (integer), followed
by one or more values specifically described in the following sections.
Unless stated otherwise, functions which have nothing meaningful to
return, on success return 1, model_name
.