summaryrefslogtreecommitdiff
path: root/indra/llcommon/apply.cpp
diff options
context:
space:
mode:
authorBrad Linden <brad@lindenlab.com>2023-12-14 12:07:18 -0800
committerBrad Linden <brad@lindenlab.com>2023-12-14 12:07:18 -0800
commit4c791e098d3abafa406e0e269038c40aae67f66c (patch)
treed566be04939faf3dc29655a8113afc067b2b7c99 /indra/llcommon/apply.cpp
parentc74dbc6e5b117bcd020c0efecf5255ad731f310f (diff)
parenta592292242e29d0379ee72572a434359e1e892d1 (diff)
Merge remote-tracking branch 'origin/main' into DRTVWR-596
Diffstat (limited to 'indra/llcommon/apply.cpp')
-rw-r--r--indra/llcommon/apply.cpp29
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))")));
+ }
+}