internal static int warn(IntPtr L) { int n = LuaDLL.lua_gettop(L); string str = stackString(L, n); Logger.LogWarning(str); LuaState state = LuaState.get(L); if (state.warnDelegate != null) { state.warnDelegate(s.ToString()); } LuaDLL.lua_settop(L, n); return(0); }