Mercurial Hosting > luan
comparison core/src/luan/modules/Luan.luan @ 473:bab5607a0eed
move do_file implementation to luan
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 10 May 2015 00:25:48 -0600 |
parents | 8b2db645b9b2 |
children | 5d4a78c93383 |
comparison
equal
deleted
inserted
replaced
472:f4aca5a5346a | 473:bab5607a0eed |
---|---|
6 assert_integer = BasicLuan.assert_integer | 6 assert_integer = BasicLuan.assert_integer |
7 assert_long = BasicLuan.assert_long | 7 assert_long = BasicLuan.assert_long |
8 assert_number = BasicLuan.assert_number | 8 assert_number = BasicLuan.assert_number |
9 assert_string = BasicLuan.assert_string | 9 assert_string = BasicLuan.assert_string |
10 assert_table = BasicLuan.assert_table | 10 assert_table = BasicLuan.assert_table |
11 do_file = BasicLuan.do_file | |
12 error = BasicLuan.error | 11 error = BasicLuan.error |
13 get_metatable = BasicLuan.get_metatable | 12 get_metatable = BasicLuan.get_metatable |
14 ipairs = BasicLuan.ipairs | 13 ipairs = BasicLuan.ipairs |
15 load = BasicLuan.load | 14 load = BasicLuan.load |
16 load_file = BasicLuan.load_file | 15 load_file = BasicLuan.load_file |
25 to_string = BasicLuan.to_string | 24 to_string = BasicLuan.to_string |
26 try = BasicLuan.try_ | 25 try = BasicLuan.try_ |
27 type = BasicLuan.type | 26 type = BasicLuan.type |
28 values = BasicLuan.values | 27 values = BasicLuan.values |
29 | 28 |
29 function do_file(uri) | |
30 return load_file(uri)() | |
31 end | |
32 | |
30 VERSION = do_file "classpath:luan/version.luan" | 33 VERSION = do_file "classpath:luan/version.luan" |
31 | |
32 | 34 |
33 local error = error | 35 local error = error |
34 | 36 |
35 function assert(v,message) | 37 function assert(v,message) |
36 return v or error(message or "assertion failed!") | 38 return v or error(message or "assertion failed!") |