示例#1
0
        /// <summary>
        /// Register a function in the coroutine table. </summary>
        private static void c(Lua L, string name, int which)
        {
            BaseLib f = new BaseLib(which);

            L.setField(L.getGlobal("coroutine"), name, f);
        }
示例#2
0
        /// <summary>
        /// Register a function. </summary>
        private static void r(Lua L, string name, int which)
        {
            BaseLib f = new BaseLib(which);

            L.setGlobal(name, f);
        }