summaryrefslogtreecommitdiff
path: root/indra/llcommon/apply.cpp
blob: 805b1234ac8ee0e9f948800a4a7c37b88d6099a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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))")));
    }
}