From 2f595dccbf1657ad7e2a502bf72b15dcfe74b8c7 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 1 Aug 2018 20:28:19 +0800 Subject: *update --- src/lua/embed/boot.lua.h | 2 +- src/lua/math/luaopen_math.cpp | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/lua') diff --git a/src/lua/embed/boot.lua.h b/src/lua/embed/boot.lua.h index 2067953..e0c43ee 100644 --- a/src/lua/embed/boot.lua.h +++ b/src/lua/embed/boot.lua.h @@ -33,7 +33,7 @@ local function safecall(func, ...) end function jin.core.run() - safecall(jin.core.load) + safecall(jin.core.onLoad) local previous = jin.time.second() local SEC_PER_UPDATE = 1 / conf.fps local dt = SEC_PER_UPDATE diff --git a/src/lua/math/luaopen_math.cpp b/src/lua/math/luaopen_math.cpp index ea169e3..98abeab 100644 --- a/src/lua/math/luaopen_math.cpp +++ b/src/lua/math/luaopen_math.cpp @@ -61,13 +61,13 @@ namespace jin } static const luaL_Reg f[] = { - { "and", l_and }, - { "or" , l_or }, - { "xor", l_xor }, - { "not", l_not }, - { "lshift", l_lshift }, - { "rshift", l_rshift }, - { "inc", l_include}, + { "AND", l_and }, + { "OR" , l_or }, + { "XOR", l_xor }, + { "NOT", l_not }, + { "LSHIFT", l_lshift }, + { "RSHIFT", l_rshift }, + { "INC", l_include}, { 0, 0 } }; -- cgit v1.1-26-g67d0