From 0e2cc0938fb2e697819dfc9d559c2f39864a426a Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Tue, 22 Oct 2013 08:34:10 -0700 Subject: [PATCH] Strongly bind global lua functions used in the standard modules --- aegisub/automation/include/aegisub/re.moon | 5 +++++ aegisub/automation/include/aegisub/util.moon | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/aegisub/automation/include/aegisub/re.moon b/aegisub/automation/include/aegisub/re.moon index 17a879a8c..1a877f067 100644 --- a/aegisub/automation/include/aegisub/re.moon +++ b/aegisub/automation/include/aegisub/re.moon @@ -12,6 +12,11 @@ -- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +error = error +next = next +select = select +type = type + -- Get the boost::regex binding regex = aegisub.__init_regex() diff --git a/aegisub/automation/include/aegisub/util.moon b/aegisub/automation/include/aegisub/util.moon index c512a9cb7..b9ff61ae3 100644 --- a/aegisub/automation/include/aegisub/util.moon +++ b/aegisub/automation/include/aegisub/util.moon @@ -13,7 +13,13 @@ -- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -sformat = string.format +error = error +pairs = pairs +select = select +sformat = string.format +tonumber = tonumber +type = type + local * -- Make a shallow copy of a table