Atlas - kconfigfunctions.py

Home / ext / kconfiglib / tests Lines: 1 | Size: 473 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)]
[FILE BEGIN]
1def add(kconf, name, *args): 2 return str(sum(map(int, args))) 3 4 5def one(kconf, name, s): 6 return name + 2*s 7 8 9def one_or_more(kconf, name, arg, *args): 10 return arg + " + " + ",".join(args) 11 12 13def location(kconf, name): 14 return "{}:{}".format(kconf.filename, kconf.linenr) 15 16 17functions = { 18 "add": (add, 0, None), 19 "one": (one, 1, 1), 20 "one-or-more": (one_or_more, 1, None), 21 "location": (location, 0, 0), 22} 23
[FILE END]
(C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.