Debian Codegraph @

Nasal/std.nas

raw
1 # SPDX-License-Identifier: GPL-2.0-or-later
2 #
3 # NOTE! This copyright does *not* cover user models that use these Nasal
4 # services by normal function calls - this is merely considered normal use
5 # of the code, and does *not* fall under the heading of "derived work."
6
7 #-------------------------------------------------------------------------------
8 # std.nas - class loader for std lib
9 # author: Henning Stahlke
10 # created: 07/2020
11 #-------------------------------------------------------------------------------
12 var include_path = "Nasal/std/";
13 var files = [
14 "hash",
15 "string",
16 "Vector",
17 ];
18
19 foreach (var file; files) {
20 io.include(include_path~file~".nas");
21 }
22
23 var min = func(a, b) { a < b ? a : b }
24 var max = func(a, b) { a > b ? a : b }