Next: , Previous: , Up: Top   [Contents][Index]


2 General notes

2.1 Preparations

All functions are made available in cnrun module namespace, by means of standard require. Thus, local N = require("cnrun"); M.some_function(args).

2.2 Returned arguments

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.