diff options
author | Signal Linden <signal@lindenlab.com> | 2023-11-21 08:07:20 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-21 08:07:20 -0800 |
commit | 5416d94d07ac85ba384fafb0b0b1b11b8cd0b6e4 (patch) | |
tree | 1c4fd503f43d628dd6223af44aa14921357ae0ab /indra/llcommon/apply.cpp | |
parent | 9b50c50bf2fe3fab2dbb0bcd18d7c8f5b9a13a1b (diff) | |
parent | 62c7a17604ba4faec989465a374e7ed7627ec56b (diff) |
Merge branch 'DRTVWR-587-maint-V' into signal/simple-release
Diffstat (limited to 'indra/llcommon/apply.cpp')
-rw-r--r-- | indra/llcommon/apply.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/indra/llcommon/apply.cpp b/indra/llcommon/apply.cpp new file mode 100644 index 0000000000..417e23d3b4 --- /dev/null +++ b/indra/llcommon/apply.cpp @@ -0,0 +1,29 @@ +/** + * @file apply.cpp + * @author Nat Goodspeed + * @date 2022-12-21 + * @brief Implementation for apply. + * + * $LicenseInfo:firstyear=2022&license=viewerlgpl$ + * Copyright (c) 2022, Linden Research, Inc. + * $/LicenseInfo$ + */ + +// Precompiled header +#include "linden_common.h" +// associated header +#include "apply.h" +// STL headers +// std headers +// external library headers +// other Linden headers +#include "stringize.h" + +void LL::apply_validate_size(size_t size, size_t arity) +{ + if (size != arity) + { + LLTHROW(apply_error(stringize("LL::apply(func(", arity, " args), " + "std::vector(", size, " elements))"))); + } +} |