summaryrefslogtreecommitdiff
path: root/indra/llcommon/apply.cpp
diff options
context:
space:
mode:
authornat-goodspeed <nat@lindenlab.com>2023-07-18 18:15:56 +0300
committerGitHub <noreply@github.com>2023-07-18 18:15:56 +0300
commit64a0911eeff765e43e634b7bad857a26cc931ce0 (patch)
tree6019f8ead7a11f745380c83d1967d2136a347177 /indra/llcommon/apply.cpp
parent4c848c8258aa0f8a29aed0bebf9cdbcf32a2c96f (diff)
parent3b46c892719ced98cdb3265801cd5f62353b3ced (diff)
Merge pull request #280 from secondlife/dispatch-maint-v2
Major improvements to LLLeap functionality
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))")));
+ }
+}