Exemple #1
0
        public string L_CheckString(int narg)
        {
            int    l   = 0;
            IntPtr ptr = LuaAPI.luaL_checklstring(this.m_lua, narg, ref l);

            if (ptr == IntPtr.Zero)
            {
                return(string.Empty);
            }
            return(LuaAPI.StringFromNativeUtf8(ptr, l));
        }